Created
February 12, 2017 14:18
-
-
Save sdiehl/52ce69b09d5744324bb30bbe826e801b 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
rivendell% stack ghci not sandboxed | |
Configuring GHCi with the following packages: | |
GHCi, version 8.0.1: http://www.haskell.org/ghc/ :? for help | |
Loaded GHCi configuration from /home/sdiehl/.ghci | |
Loaded GHCi configuration from /tmp/ghci18272/ghci-script | |
λ> class Foo a where { foo :: a -> Int } | |
λ> instance Foo () where { foo _ = 3 } | |
λ> bar = foo () | |
λ> bar | |
3 | |
λ> instance Foo () where { foo _ = 4 } | |
λ> bar | |
3 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment