Skip to content

Conflicting definition in hs-boot file

Foo.hs:

module Foo where

import Bar

data Foo a

Foo.hs-boot:

module Foo where

data Foo a

Bar.hs:

module Bar where
import {-# SOURCE #-} Foo

With GHC 7.8.2 I'm getting the error

Foo.hs-boot:3:1:
    Type constructor ‘Foo’ has conflicting definitions in the module
    and its hs-boot file
    Main module: type role Foo phantom
                 data Foo a
    Boot file:   data Foo a
Trac metadata
Trac field Value
Version 7.8.2
Type Bug
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component Compiler
Test case
Differential revisions
BlockedBy
Related
Blocking
CC
Operating system
Architecture
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information