Skip to content

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

DanBurton opened this Issue Jul 6, 2012 · 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.

manzyuk commented May 4, 2013

Related to (duplicate of?) Issue #774.

Haskell member
ttuegel commented Apr 23, 2015

Closing duplicate.

@ttuegel ttuegel closed this Apr 23, 2015
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.