Skip to content

Commit

Permalink
Fix the ‘data F = a’ issue from #493.
Browse files Browse the repository at this point in the history
  • Loading branch information
Fuuzetsu committed Jan 15, 2014
1 parent 882d5f8 commit 5ab50d4
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions yi/src/library/Yi/Syntax/Haskell.hs
Original file line number Diff line number Diff line change
Expand Up @@ -423,10 +423,14 @@ pAtype = pAtype'
<|> pErr

pAtype' :: Parser TT (Exp TT)
pAtype' = pQvarid
pAtype' = pTypeCons
<|> pParen (many $ pExprElem [])
<|> pBrack (many $ pExprElem [])

pTypeCons :: Parser TT (Exp TT)
pTypeCons = Bin <$> pAtom [ConsIdent]
<*> please (pMany $ pAtom [VarIdent, ConsIdent])

pContext :: Parser TT (Exp TT)
pContext = Context <$> pOpt pForAll
<*> (TC <$> (pClass' <|> pParenSep pClass'))
Expand Down Expand Up @@ -700,4 +704,3 @@ errTok = mkTok <$> curPos
tB Nothing = maxBound
tB (Just x) = tokBegin x
mkTok p = Tok (Special '!') 0 (startPosn {posnOfs = p})

0 comments on commit 5ab50d4

Please sign in to comment.