Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP


"the following two should never happen" span happens #968

DanBurton opened this Issue · 2 comments

3 participants


According to this file

-- the following two should never happen:
Span n     l  :_ -> syntaxError n $ "unexpected span: " ++ show l
Line n _ _ l  :_ -> syntaxError n $ "unexpected line: " ++ show l

However if you attempt to use Haskell record update syntax as example code in the "description" field, you can make it happen. For example, if you use the following as the contents of a .cabal file:

description: > quux (foo { bar = baz })

You will get the error message

cabal: foo.cabal:1:  unexpected span: ")"

This may be connected to a deeper defect: curly braces do not display at all on Hackage package description pages.


Related to (duplicate of?) Issue #774.


Closing duplicate.

@ttuegel ttuegel closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.