souplesse/lib/Track.hs

18 lines
302 B
Haskell
Raw Normal View History

2024-10-27 23:13:39 +00:00
module Track where
import Data.Time
import qualified Data.List
data Pos = Pos Float Float
data Point = Point Pos UTCTime
type Track = [Point]
parse :: String -> Track
parse str = [
-- Point (Pos 516 0) (UTCTime (toEnum 60631) 43200)
]
length :: Track -> Int
length trk = Data.List.length trk