Make the `Time` type more flexible.
commitb9d26eeead43e14e5c6b691a254170b3374858c3
authorevancz <info@elm-lang.org>
dateSat 1 Dec 2012, 21:12 (14 years ago)
parent5c06a73
elm/src/Parse/Types.hs+1
@@ -36,6 +36,7 @@ typeUnambiguous = typeList <|> typeTuple
3636typeSimple :: IParser ParseType
3737typeSimple = dealias <$> var
3838 where dealias "String" = listPT (VarPT "Char")
39+ dealias "Time" = VarPT "Float"
3940 dealias v = VarPT v
4041
4142typeApp :: IParser ParseType
elm/src/Types/Types.hs+1−1
@@ -42,7 +42,7 @@ bool = tipe "Bool"
4242string = listOf char -- tipe "String"
4343text = tipe "Text"
4444
45−time = tipe "Time"
45+time = float --tipe "Time"
4646date = tipe "Date"
4747month = tipe "Month"
4848day = tipe "Day"