Created
July 24, 2020 23:56
-
-
Save natefaubion/f2629a6024e8a957eaf9d03baccbc1d9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Main where | |
import Prelude | |
import Data.Maybe | |
import Effect | |
import Effect.Console | |
import Effect.Unsafe | |
wat oh = unsafePerformEffect (log oh) | |
test1 :: Effect Unit | |
test1 = do | |
ok (wat "hello from effect") | |
pure unit | |
where | |
ok _ = pure unit | |
test2 :: Maybe Unit | |
test2 = do | |
ok (wat "hello from maybe") | |
pure unit | |
where | |
ok _ = pure unit |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment