mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-29 06:22:51 -06:00
bugfix in PGF.Type.pType: Agda style types like {x : A} -> B should not be supported in GF
This commit is contained in:
@@ -67,21 +67,16 @@ pType = do
|
|||||||
do (cat,args) <- pAtom
|
do (cat,args) <- pAtom
|
||||||
return [(Explicit,wildCId,DTyp [] cat args)]
|
return [(Explicit,wildCId,DTyp [] cat args)]
|
||||||
RP.<++
|
RP.<++
|
||||||
(RP.between (RP.char '(') (RP.char ')') $ do
|
do RP.between (RP.char '(') (RP.char ')') pHypoBinds
|
||||||
xs <- RP.option [(Explicit,wildCId)] $ do
|
|
||||||
xs <- pBinds
|
pHypoBinds = do
|
||||||
RP.skipSpaces
|
xs <- RP.option [(Explicit,wildCId)] $ do
|
||||||
RP.char ':'
|
xs <- pBinds
|
||||||
return xs
|
RP.skipSpaces
|
||||||
ty <- pType
|
RP.char ':'
|
||||||
return [(b,v,ty) | (b,v) <- xs])
|
return xs
|
||||||
RP.<++
|
ty <- pType
|
||||||
(RP.between (RP.char '{') (RP.char '}') $ do
|
return [(b,v,ty) | (b,v) <- xs]
|
||||||
vs <- RP.sepBy1 (RP.skipSpaces >> pCId) (RP.skipSpaces >> RP.char ',')
|
|
||||||
RP.skipSpaces
|
|
||||||
RP.char ':'
|
|
||||||
ty <- pType
|
|
||||||
return [(Implicit,v,ty) | v <- vs])
|
|
||||||
|
|
||||||
pAtom = do
|
pAtom = do
|
||||||
cat <- pCId
|
cat <- pCId
|
||||||
|
|||||||
Reference in New Issue
Block a user