Skip to content

Instantly share code, notes, and snippets.

@freakingawesome
Created March 30, 2017 15:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save freakingawesome/cda49684646de778cda15b4306005759 to your computer and use it in GitHub Desktop.
Save freakingawesome/cda49684646de778cda15b4306005759 to your computer and use it in GitHub Desktop.
so-43111085-repl-example.elm
> type Route = SettingsRoute (Maybe String) (Maybe String)
> parsePath (map SettingsRoute (s "blog" <?> stringParam "search" <?> stringParam "sortBy")) (Location "" "" "" "" "" "" "/blog" "?search=cats&sortBy=name" "" "" "")
Just (SettingsRoute (Just "cats") (Just "name")) : Maybe.Maybe Repl.Route
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment