blob: e55d1b20767aa680aa03c6ad452ae9ee5a900888 (
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
|
module Persona
( Operation(..)
, operations
, fromString
, toString
) where
type Operation =
NoOp
| SignIn
operations : Signal.Mailbox Operation
operations = Signal.mailbox NoOp
fromString : String -> Operation
fromString str =
case str of
"SignIn" -> SignIn
_ -> NoOp
toString : Operation -> String
toString operation =
case operation of
SignIn -> "SignIn"
_ -> "NoOp"
|