Last active
December 5, 2016 13:07
-
-
Save rikvdkleij/17694ec5a3d02dd842e539fd8c26739a to your computer and use it in GitHub Desktop.
This file contains hidden or 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
{-# LANGUAGE NoImplicitPrelude #-} | |
module Example where | |
import qualified Prelude as P | |
foo :: (P.Int, P.Int) -> P.Int | |
foo t = fst t where fst = P.fst | |
foo2 :: (P.Int, P.Int) -> P.Int | |
foo2 t = first t where first = P.fst | |
-- fst in foo has issue | |
-- first in foo2 has no issue, it refers to first in where binding |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment