Skip to content

Instantly share code, notes, and snippets.

@natefaubion
Created July 24, 2020 23:56
Show Gist options
  • Save natefaubion/f2629a6024e8a957eaf9d03baccbc1d9 to your computer and use it in GitHub Desktop.
Save natefaubion/f2629a6024e8a957eaf9d03baccbc1d9 to your computer and use it in GitHub Desktop.
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