summaryrefslogtreecommitdiff
path: root/src/Language/Fiddle/Parser.hs
diff options
context:
space:
mode:
Diffstat (limited to 'src/Language/Fiddle/Parser.hs')
-rw-r--r--src/Language/Fiddle/Parser.hs5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/Language/Fiddle/Parser.hs b/src/Language/Fiddle/Parser.hs
index dc479d1..37ef34e 100644
--- a/src/Language/Fiddle/Parser.hs
+++ b/src/Language/Fiddle/Parser.hs
@@ -28,6 +28,7 @@ type P = ParsecT S () Identity
type A = Commented SourceSpan
type Pa (a :: Stage -> (Type -> Type) -> Type -> Type) = P (a 'Stage1 F (Commented SourceSpan))
+type PaS (a :: (Type -> Type) -> Type -> Type) = P (a F (Commented SourceSpan))
comment :: P Comment
comment =
@@ -139,7 +140,7 @@ objTypeDecl =
<*> optionMaybe (tok TokColon *> registerBody)
)
-modifier :: Pa Modifier
+modifier :: PaS Modifier
modifier =
withMeta $
ModifierKeyword
@@ -278,7 +279,7 @@ printNext = do
traceM $ "NextToken: " ++ show t
return ()
-ident :: Pa Identifier
+ident :: PaS Identifier
ident =
withMeta $
token $ \case