Created
January 28, 2019 19:49
-
-
Save dmwit/369c1574c9ca365b1cad94edf3227ee1 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- 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