
#13485: Doesn't warn about variable not in scope -------------------------------------+------------------------------------- Reporter: Iceland_jack | Owner: (none) Type: bug | Status: closed Priority: normal | Milestone: Component: Compiler | Version: 8.0.1 Resolution: worksforme | Keywords: GADTs Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by RyanGlScott): I'm still not reproducing the error, even with `-fdefer-typed-holes`. {{{ $ ghci Bug.hs -fdefer-typed-holes GHCi, version 8.0.2: http://www.haskell.org/ghc/ :? for help Loaded GHCi configuration from /home/rgscott/.ghci [1 of 1] Compiling Main ( Bug.hs, interpreted ) Bug.hs:29:13: error: Variable not in scope: (&) :: FunC a -> t0 -> FunC a -> FunC a Bug.hs:29:23: error: • Couldn't match type ‘Internal t0’ with ‘a0 -> a0 -> a0’ Expected type: FunC (Internal t0) Actual type: FunC (a0 -> a0 -> a0) The type variables ‘t0’, ‘a0’ are ambiguous • In the first argument of ‘fromFunC’, namely ‘Add’ In the second argument of ‘(&)’, namely ‘fromFunC Add’ In the expression: (&) a fromFunC Add }}} -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/13485#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler