[GHC] #11505: Boot file problem

GHC ghc-devs at haskell.org
Thu Jan 28 16:05:57 UTC 2016


#11505: Boot file problem
-------------------------------------+-------------------------------------
        Reporter:  augustss          |                Owner:
            Type:  bug               |               Status:  new
        Priority:  normal            |            Milestone:
       Component:  Compiler          |              Version:  7.8.3
      Resolution:                    |             Keywords:
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 rwbarton):

 I can confirm that the error does not occur in 8.0.
 {{{
 rwbarton at morphism:/tmp/boot$ ls
 Bar.hs  Foo.hs  Foo.hs-boot
 rwbarton at morphism:/tmp/boot$ GHC=~/ghc-8.0-install/bin/ghc
 rwbarton at morphism:/tmp/boot$ $GHC --version
 The Glorious Glasgow Haskell Compilation System, version 8.0.0.20160123
 rwbarton at morphism:/tmp/boot$ $GHC -c Foo.hs-boot; $GHC -c Bar.hs; $GHC -c
 Foo.hs
 rwbarton at morphism:/tmp/boot$ rm *.hi* *.o*; ls
 Bar.hs  Foo.hs  Foo.hs-boot
 rwbarton at morphism:/tmp/boot$ GHC=ghc-7.10.1
 rwbarton at morphism:/tmp/boot$ $GHC --version
 The Glorious Glasgow Haskell Compilation System, version 7.10.1
 rwbarton at morphism:/tmp/boot$ $GHC -c Foo.hs-boot; $GHC -c Bar.hs; $GHC -c
 Foo.hs

 Foo.hs:4:2:
     Type constructor ‘Foo’ has conflicting definitions in the module
     and its hs-boot file
     Main module: data Foo = Foo {x :: !Int}
     Boot file:   data Foo = Foo {x :: !Int}
     The constructors do not match:
       The strictness annotations for ‘Foo’ differ
 }}}

--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/11505#comment:2>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list