Skip to content

Instantly share code, notes, and snippets.

@nushio3
Created June 5, 2015 14:30
Show Gist options
  • Save nushio3/506ce59ea67c719c2c09 to your computer and use it in GitHub Desktop.
Save nushio3/506ce59ea67c719c2c09 to your computer and use it in GitHub Desktop.
module A where
data A = A
instance Show A where
show _ = "-> A <-"
import A
main :: IO ()
main = print A
(7.10.1)nushio@nuwheezy:import$ ghci Main.hs
GHCi, version 7.10.1: http://www.haskell.org/ghc/ :? for help
[1 of 2] Compiling A ( A.hs, interpreted )
[2 of 2] Compiling Main ( Main.hs, interpreted )
Ok, modules loaded: A, Main.
> main
-> A <-
> print A
-> A <-
>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment