git.iko.soy/rowtype-yoga/purescript-native
on ff577ab help sign in
19 lines 343 B history raw
1module Main where
3 import Prelude
5 test :: forall a b. a -> b -> a
6 test = \const _ -> const
8 foreign import error
9 """
10 function error(msg) {
11 throw msg;
12 }
13 """ :: forall a. String -> a
15 main = do
16 let value = test "Done" {}
17 if value == "Done"
18 then Debug.Trace.trace "Done"
19 else error "Not done"