Skip to content

Instantly share code, notes, and snippets.

View sabine's full-sized avatar

sabine sabine

View GitHub Profile
@sabine
sabine / gist:e698645f7a986bc998abab20c150487d
Created January 7, 2017 11:10
Querystring parsing with Bogdanp/elm-querystring and Bogdanp/elm-route
type alias Model =
{ ....
, route : Sitemap
, querystring : QueryString
... }
type Msg
= RouteTo Sitemap QueryString
| RouteChanged Sitemap QueryString
@sabine
sabine / gist:1462f9586658c911bad3a5ab88e0c524
Last active January 7, 2017 19:28
Example of Nested Routes (with parameters) in Bogdanp/elm-route 4.0.0 and Elm 0.18
module Routes exposing (..)
import Navigation exposing (Location)
import Route exposing (..)
import Combine exposing ((<$),(*>),(<$>))
import Combine.Num
type Sitemap
= ProfileR String Profile
| NotFoundR