git.iko.soy/rowtype-yoga/purescript-native
on db2dd21 help sign in
17 lines 333 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 "function error(msg) {\
10 \ throw msg;\
11 \}" :: forall a. String -> a
13 main = do
14 let value = test "Done" {}
15 if value == "Done"
16 then Debug.Trace.trace "Done"
17 else error "Not done"