Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/Gen/Result.elm
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ make_ =
, annotation =
Just
(Type.namedWith
[]
[ "Result" ]
"Result"
[ Type.var "error", Type.var "value" ]
)
Expand All @@ -83,7 +83,7 @@ make_ =
, annotation =
Just
(Type.namedWith
[]
[ "Result" ]
"Result"
[ Type.var "error", Type.var "value" ]
)
Expand Down
45 changes: 25 additions & 20 deletions src/Gen/Rfc3339.elm
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,8 @@ make_ =
(Elm.value
{ importFrom = [ "Rfc3339" ]
, name = "DateTimeOffset"
, annotation = Just (Type.namedWith [] "DateTime" [])
, annotation =
Just (Type.namedWith [ "Rfc3339" ] "DateTime" [])
}
)
[ ar0 ]
Expand All @@ -110,7 +111,8 @@ make_ =
(Elm.value
{ importFrom = [ "Rfc3339" ]
, name = "DateTimeLocal"
, annotation = Just (Type.namedWith [] "DateTime" [])
, annotation =
Just (Type.namedWith [ "Rfc3339" ] "DateTime" [])
}
)
[ ar0 ]
Expand All @@ -120,7 +122,8 @@ make_ =
(Elm.value
{ importFrom = [ "Rfc3339" ]
, name = "DateLocal"
, annotation = Just (Type.namedWith [] "DateTime" [])
, annotation =
Just (Type.namedWith [ "Rfc3339" ] "DateTime" [])
}
)
[ ar0 ]
Expand All @@ -130,108 +133,110 @@ make_ =
(Elm.value
{ importFrom = [ "Rfc3339" ]
, name = "TimeLocal"
, annotation = Just (Type.namedWith [] "DateTime" [])
, annotation =
Just (Type.namedWith [ "Rfc3339" ] "DateTime" [])
}
)
[ ar0 ]
, expectedDateSeparator =
Elm.value
{ importFrom = [ "Rfc3339" ]
, name = "ExpectedDateSeparator"
, annotation = Just (Type.namedWith [] "Error" [])
, annotation = Just (Type.namedWith [ "Rfc3339" ] "Error" [])
}
, expectedDateTimeSeparator =
Elm.value
{ importFrom = [ "Rfc3339" ]
, name = "ExpectedDateTimeSeparator"
, annotation = Just (Type.namedWith [] "Error" [])
, annotation = Just (Type.namedWith [ "Rfc3339" ] "Error" [])
}
, expectedTimeSeparator =
Elm.value
{ importFrom = [ "Rfc3339" ]
, name = "ExpectedTimeSeparator"
, annotation = Just (Type.namedWith [] "Error" [])
, annotation = Just (Type.namedWith [ "Rfc3339" ] "Error" [])
}
, expectedOffsetSeparator =
Elm.value
{ importFrom = [ "Rfc3339" ]
, name = "ExpectedOffsetSeparator"
, annotation = Just (Type.namedWith [] "Error" [])
, annotation = Just (Type.namedWith [ "Rfc3339" ] "Error" [])
}
, invalidMonth =
Elm.value
{ importFrom = [ "Rfc3339" ]
, name = "InvalidMonth"
, annotation = Just (Type.namedWith [] "Error" [])
, annotation = Just (Type.namedWith [ "Rfc3339" ] "Error" [])
}
, dayTooLarge =
\ar0 ->
Elm.apply
(Elm.value
{ importFrom = [ "Rfc3339" ]
, name = "DayTooLarge"
, annotation = Just (Type.namedWith [] "Error" [])
, annotation =
Just (Type.namedWith [ "Rfc3339" ] "Error" [])
}
)
[ ar0 ]
, expectedZuluOffset =
Elm.value
{ importFrom = [ "Rfc3339" ]
, name = "ExpectedZuluOffset"
, annotation = Just (Type.namedWith [] "Error" [])
, annotation = Just (Type.namedWith [ "Rfc3339" ] "Error" [])
}
, expectedOffsetSign =
Elm.value
{ importFrom = [ "Rfc3339" ]
, name = "ExpectedOffsetSign"
, annotation = Just (Type.namedWith [] "Error" [])
, annotation = Just (Type.namedWith [ "Rfc3339" ] "Error" [])
}
, expectedFractionalSecondSeparator =
Elm.value
{ importFrom = [ "Rfc3339" ]
, name = "ExpectedFractionalSecondSeparator"
, annotation = Just (Type.namedWith [] "Error" [])
, annotation = Just (Type.namedWith [ "Rfc3339" ] "Error" [])
}
, expectedDigit =
Elm.value
{ importFrom = [ "Rfc3339" ]
, name = "ExpectedDigit"
, annotation = Just (Type.namedWith [] "Error" [])
, annotation = Just (Type.namedWith [ "Rfc3339" ] "Error" [])
}
, expectedAnInt =
Elm.value
{ importFrom = [ "Rfc3339" ]
, name = "ExpectedAnInt"
, annotation = Just (Type.namedWith [] "Error" [])
, annotation = Just (Type.namedWith [ "Rfc3339" ] "Error" [])
}
, invalidNegativeDigits =
Elm.value
{ importFrom = [ "Rfc3339" ]
, name = "InvalidNegativeDigits"
, annotation = Just (Type.namedWith [] "Error" [])
, annotation = Just (Type.namedWith [ "Rfc3339" ] "Error" [])
}
, invalidHour =
Elm.value
{ importFrom = [ "Rfc3339" ]
, name = "InvalidHour"
, annotation = Just (Type.namedWith [] "Error" [])
, annotation = Just (Type.namedWith [ "Rfc3339" ] "Error" [])
}
, invalidMinute =
Elm.value
{ importFrom = [ "Rfc3339" ]
, name = "InvalidMinute"
, annotation = Just (Type.namedWith [] "Error" [])
, annotation = Just (Type.namedWith [ "Rfc3339" ] "Error" [])
}
, invalidSecond =
Elm.value
{ importFrom = [ "Rfc3339" ]
, name = "InvalidSecond"
, annotation = Just (Type.namedWith [] "Error" [])
, annotation = Just (Type.namedWith [ "Rfc3339" ] "Error" [])
}
, invalidDay =
Elm.value
{ importFrom = [ "Rfc3339" ]
, name = "InvalidDay"
, annotation = Just (Type.namedWith [] "Error" [])
, annotation = Just (Type.namedWith [ "Rfc3339" ] "Error" [])
}
}