-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rename:
old-websites
-> time-machine
Github pages takes precedence over my own routing apparently lol
- Loading branch information
1 parent
de35054
commit ea99b71
Showing
9 changed files
with
681 additions
and
65 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,157 @@ | ||
module Gen.Fetcher.AllProjects exposing (call_, moduleName_, submit, values_) | ||
|
||
{-| | ||
@docs values_, call_, submit, moduleName_ | ||
-} | ||
|
||
|
||
import Elm | ||
import Elm.Annotation as Type | ||
|
||
|
||
{-| The name of this module. -} | ||
moduleName_ : List String | ||
moduleName_ = | ||
[ "Fetcher", "AllProjects" ] | ||
|
||
|
||
{-| submit: | ||
(Result Http.Error Route.AllProjects.ActionData -> msg) | ||
-> { fields : List ( String, String ), headers : List ( String, String ) } | ||
-> Pages.Fetcher.Fetcher msg | ||
-} | ||
submit : | ||
(Elm.Expression -> Elm.Expression) | ||
-> { fields : List Elm.Expression, headers : List Elm.Expression } | ||
-> Elm.Expression | ||
submit submitArg submitArg0 = | ||
Elm.apply | ||
(Elm.value | ||
{ importFrom = [ "Fetcher", "AllProjects" ] | ||
, name = "submit" | ||
, annotation = | ||
Just | ||
(Type.function | ||
[ Type.function | ||
[ Type.namedWith | ||
[] | ||
"Result" | ||
[ Type.namedWith [ "Http" ] "Error" [] | ||
, Type.namedWith | ||
[ "Route", "AllProjects" ] | ||
"ActionData" | ||
[] | ||
] | ||
] | ||
(Type.var "msg") | ||
, Type.record | ||
[ ( "fields" | ||
, Type.list (Type.tuple Type.string Type.string) | ||
) | ||
, ( "headers" | ||
, Type.list (Type.tuple Type.string Type.string) | ||
) | ||
] | ||
] | ||
(Type.namedWith | ||
[ "Pages", "Fetcher" ] | ||
"Fetcher" | ||
[ Type.var "msg" ] | ||
) | ||
) | ||
} | ||
) | ||
[ Elm.functionReduced "submitUnpack" submitArg | ||
, Elm.record | ||
[ Tuple.pair "fields" (Elm.list submitArg0.fields) | ||
, Tuple.pair "headers" (Elm.list submitArg0.headers) | ||
] | ||
] | ||
|
||
|
||
call_ : { submit : Elm.Expression -> Elm.Expression -> Elm.Expression } | ||
call_ = | ||
{ submit = | ||
\submitArg submitArg0 -> | ||
Elm.apply | ||
(Elm.value | ||
{ importFrom = [ "Fetcher", "AllProjects" ] | ||
, name = "submit" | ||
, annotation = | ||
Just | ||
(Type.function | ||
[ Type.function | ||
[ Type.namedWith | ||
[] | ||
"Result" | ||
[ Type.namedWith [ "Http" ] "Error" [] | ||
, Type.namedWith | ||
[ "Route", "AllProjects" ] | ||
"ActionData" | ||
[] | ||
] | ||
] | ||
(Type.var "msg") | ||
, Type.record | ||
[ ( "fields" | ||
, Type.list | ||
(Type.tuple Type.string Type.string) | ||
) | ||
, ( "headers" | ||
, Type.list | ||
(Type.tuple Type.string Type.string) | ||
) | ||
] | ||
] | ||
(Type.namedWith | ||
[ "Pages", "Fetcher" ] | ||
"Fetcher" | ||
[ Type.var "msg" ] | ||
) | ||
) | ||
} | ||
) | ||
[ submitArg, submitArg0 ] | ||
} | ||
|
||
|
||
values_ : { submit : Elm.Expression } | ||
values_ = | ||
{ submit = | ||
Elm.value | ||
{ importFrom = [ "Fetcher", "AllProjects" ] | ||
, name = "submit" | ||
, annotation = | ||
Just | ||
(Type.function | ||
[ Type.function | ||
[ Type.namedWith | ||
[] | ||
"Result" | ||
[ Type.namedWith [ "Http" ] "Error" [] | ||
, Type.namedWith | ||
[ "Route", "AllProjects" ] | ||
"ActionData" | ||
[] | ||
] | ||
] | ||
(Type.var "msg") | ||
, Type.record | ||
[ ( "fields" | ||
, Type.list (Type.tuple Type.string Type.string) | ||
) | ||
, ( "headers" | ||
, Type.list (Type.tuple Type.string Type.string) | ||
) | ||
] | ||
] | ||
(Type.namedWith | ||
[ "Pages", "Fetcher" ] | ||
"Fetcher" | ||
[ Type.var "msg" ] | ||
) | ||
) | ||
} | ||
} | ||
|
||
|
This file contains 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
Oops, something went wrong.