Skip to content

Instantly share code, notes, and snippets.

@dmwit
Created January 28, 2019 19:49
Show Gist options
  • Save dmwit/369c1574c9ca365b1cad94edf3227ee1 to your computer and use it in GitHub Desktop.
Save dmwit/369c1574c9ca365b1cad94edf3227ee1 to your computer and use it in GitHub Desktop.
-- dmwit style
module Parser where
import Data.Time
data Transaction = Transaction
{ amount :: Double
, time :: UTCTime
, tags :: [String]
} deriving Show
-- also not the absolute worst
module Parser where
import Data.Time
type Amount = Double
type Tags = [String]
data Transaction = Transaction
{ amount :: Amount
, time :: UTCTime
, tags :: Tags
} deriving Show
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment