git.iko.soy/rowtype-yoga/purescript-native
on golang help sign in
Added a type signatue to main.
commit80b7684b0455d5171aa959d15d857524982daf80 authoraspidites <emarshall85@gmail.com> dateTue 20 Oct 2015, 14:38 (11 years ago) parent6d1aa33
1 file changed+3
core-tests/tests/generic-deriving/Main.purs+3
core-tests/tests/generic-deriving/Main.purs+3
@@ -2,6 +2,8 @@ module GenericDeriving where
22
33import Prelude
44
5+import Control.Monad.Eff (Eff())
6+import Control.Monad.Eff.Console (CONSOLE())
57import Data.Generic
68
79data Void
@@ -17,4 +19,5 @@ data A a
1719
1820derive instance genericA :: (Generic a) => Generic (A a)
1921
22+main :: forall eff. Eff (console :: CONSOLE | eff) Unit
2023main = Control.Monad.Eff.Console.log (gShow (D { a: C [ A 1.0 "test", B 42, D { a: true } ] }))