n3paste.de

::

a haskell happstack pastebin

  • New paste
  • View pastes

  • Login

  • About
  • Most recent pastes (filtered)

    Filter pastes (help):

    21:11 - Fri 2017.02.10

    Haskell

    Paste: /0hQL/Show related

    No description.

    module Main where
    
    main = do
      doStuff $ Left "shitty error"
      doStuff $ Right "everything good"
    
    doStuff :: Show a, Show b => Either a b -> IO ()
    doStuff (Left e) = print e
    doStuff (Right val) = print val