Skip to content

Instantly share code, notes, and snippets.

@dminuoso
Last active April 3, 2018 02:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dminuoso/1e13fccc621869994a0f018a4b145f89 to your computer and use it in GitHub Desktop.
Save dminuoso/1e13fccc621869994a0f018a4b145f89 to your computer and use it in GitHub Desktop.
module A where
class T a where
t :: a -> Bool
module Apple where
import A
import B
g = t (1 :: Int)
module B where
import A
instance T Int where
t = const True
module Banana where
import A
import C
module C where
import A
instance T Int where
t = const False
module Main where
import Apple
import Banana
main = main
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment