
#15601: Unexpected compile error on type level lists with a single element -------------------------------------+------------------------------------- Reporter: erikd | Owner: (none) Type: bug | Status: closed Priority: normal | Milestone: 8.6.1 Component: Compiler | Version: 8.4.3 Resolution: invalid | Keywords: Operating System: Unknown/Multiple | Architecture: Type of failure: Incorrect | Unknown/Multiple error/warning at compile-time | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by erikd): Ok, thanks. The solution for single element lists is to use: {{{ type TypeList5 = TypeList2 :++ '[ 'F] }}} where bot the list and the constructor are ticked *and* there is a space between the open square bracket and the first ticked constructor. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/15601#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler