Skip to content

Commit

Permalink
Allow multiple fat arrows in schemas.
Browse files Browse the repository at this point in the history
The qualifiers from all arrows are combined into a single set.

Fixes #599
  • Loading branch information
yav committed May 29, 2019
1 parent 4ce64e9 commit c5ab964
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Cryptol/Parser.y
Original file line number Diff line number Diff line change
Expand Up @@ -613,6 +613,10 @@ schema_vars :: { Located [TParam PName] }
| '{' schema_params '}' { Located (rComb $1 $3) (reverse $2) }

schema_quals :: { Located [Prop PName] }
: schema_quals schema_qual { at ($1,$2) $ fmap (++ thing $2) $1 }
| schema_qual { $1 }

schema_qual :: { Located [Prop PName] }
: type '=>' {% fmap (\x -> at (x,$2) x) (mkProp $1) }

kind :: { Located Kind }
Expand Down

0 comments on commit c5ab964

Please sign in to comment.