Skip to content

Instantly share code, notes, and snippets.

@rikvdkleij
Last active December 5, 2016 13:07
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 rikvdkleij/17694ec5a3d02dd842e539fd8c26739a to your computer and use it in GitHub Desktop.
Save rikvdkleij/17694ec5a3d02dd842e539fd8c26739a to your computer and use it in GitHub Desktop.
{-# 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