GHC 7.2.1 - Template Haskell Bug
Fresh GHC 7.2.1 cannot compile
{-# LANGUAGE TemplateHaskell #-}
module Foobar where
foobar :: Int
foobar = $([|
let
bar :: Int
bar = 5
in bar
|])
complaining that "The type signature for `bar' lacks an accompanying binding".
Neither GHC 6.xx nor GHC 7.0.x had this bug.
Trac metadata
Trac field | Value |
---|---|
Version | 7.1 |
Type | Bug |
TypeOfFailure | OtherFailure |
Priority | normal |
Resolution | Unresolved |
Component | Compiler |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | |
Operating system | |
Architecture |