SAESJLLYCQJUIHKFYFV53AWHFOSGI5SKLVS7DPTQO6BKGITPYPUQC
OUR4PAOTXXKXQPMAR5TIYX7MBRRJS2WVTZS7SN4SOGML7SPJIJGQC
5R2Z7FSXJD7Z53QSU2NSTEBONTYK43FIJOSOMUST5XMYIWRXY2HQC
NJNMO72S7VIUV22JXB4IFPZMHWTJAOTP6EC6Z4QSKYIROSXT52MQC
PT4276XCOP5NJ3GRFJLIBZKVNVAOATAY5PLWV7FWK6RZW5FTEP5AC
WRPIYG3EUHZR6N6T74ZXZDXATRMIRLXAQ24UNUNSVTVYGMT2VDSQC
EA5BFM5GMM7KNMDLTVOSUKVKMSIDD72TAFVHDVGEOUY5VELECU3QC
QMEYU4MWLTSWPWEEOFRLK2IKE64BY3V5X73323WPLCGPP3TPDYGAC
QU5FW67RGCWOWT2YFM4NYMJFFHWIRPQANQBBAHBKZUY7UYMCSIMQC
RB2ETNIFLQUA6OA66DAEOXZ25ENMQGNKX5CZRSKEYHTD6BQ6NTFQC
BFZN4SUAGYNFFYVAP36BAX32DMO622PK4EPEVQQEAGC2IHTEAAPQC
TKGBRIQT7XCPJ3LA5JAEMMGMPFWQWINMSDRW76V2IMZZGT5AWTYAC
ARX7SHY5UXL5ZZDY4BJ6LVQSC2XCI5M6FFXQ35MBWDRUHNJNICHQC
3LMXT7Z6SIGLQ2OMH7OKPJPWNPN2CSGD3BKUD2NMJVCX2CSAMFYQC
5FLAK3ME76HKLOA23A5PNXQXN3ATLU2K6DSAEHIDT2EGJMHWMQSAC
<link rel="stylesheet" type="text/css" href="./assets/css/theme.css" />
<link rel="stylesheet" type="text/css" href="./assets/css/spinner.css" />
<link rel="stylesheet" type="text/css" href="/assets/css/theme.css" />
<link rel="stylesheet" type="text/css" href="/assets/css/spinner.css" />
mockCapability :: forall m. Applicative m => Capability m
mockCapability =
{ signup: \_ _ -> pure OK
}
result <- lift loginCap.checkLogin
case result of
Login.Forbidden -> H.put LoggedOut
_ -> H.put LoggedIn
route <- lift system.getHash
nextView <- case route of
"login" -> pure VLogin
"signup" -> pure VSignup
other -> do
result <- lift loginCap.checkLogin
case result of
Login.Forbidden -> pure VLogin
_ -> pure VTimeline
H.modify_ (_ { view = nextView })