Skip to content

Commit

Permalink
fix parse error with higher order functions
Browse files Browse the repository at this point in the history
  • Loading branch information
bristermitten committed Dec 5, 2023
1 parent eba4527 commit 4452451
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Elara/Parse/Type.hs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import Elara.Parse.Combinators (liftedBinary, sepBy1')
import Elara.Parse.Error (ElaraParseError (EmptyRecord))
import Elara.Parse.Names
import Elara.Parse.Primitives (Parser, inBraces, inParens, located, locatedTokens', token_)
import Text.Megaparsec (choice, customFailure)
import Text.Megaparsec (choice, customFailure, MonadParsec (try))

type' :: Parser FrontendType
type' =
Expand Down Expand Up @@ -42,8 +42,8 @@ typeTerm :: Parser FrontendType
typeTerm =
choice @[]
[ typeVar
, try (inParens type')
, unit
, inParens type'
, tupleType
, namedType
, emptyRecordError
Expand Down

0 comments on commit 4452451

Please sign in to comment.