You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-- 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.
The text was updated successfully, but these errors were encountered:
It appears this is more like what's intended to get nice Haddock
documentation. Alas, I couldn't seem to reproduce the 'Expr' example
100% since passing a custom name for the catamorphism via
$(makeCata defaultOptions { cataName = "foobar" } ''T)
always makes cabal choke with
cabal: foo.cabal:1: unexpected span: "''T"
It appears it's because of the curly braces, much like what was noted
in haskell/cabal#968 (but that ticket got
resolved years ago).
According to this file http://hackage.haskell.org/packages/archive/Cabal/1.14.0/doc/html/src/Distribution-ParseUtils.html
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:
You will get the error message
This may be connected to a deeper defect: curly braces do not display at all on Hackage package description pages.
The text was updated successfully, but these errors were encountered: