blob: 1463fc4b5362827c0c38ebade8e08ca0524e93bd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE TypeOperators #-}
module Biz.Devalloc.Path
( Paths,
home,
signup,
)
where
import Alpha
import qualified Biz.Devalloc.Core as Core
import Miso
import Servant
type Paths = Home :<|> Signup
type Home = View Core.Move
type Signup = "signup" :> View Core.Move
home :: URI
home = linkURI <| safeLink (Proxy :: Proxy Paths) (Proxy :: Proxy Home)
signup :: URI
signup = linkURI <| safeLink (Proxy :: Proxy Paths) (Proxy :: Proxy Signup)
|