This commit is contained in:
Frederik Hanghøj Iversen 2019-10-17 23:37:56 +02:00
parent f8163f99c7
commit dc9fe92484
2 changed files with 6 additions and 4 deletions

View File

@ -11,4 +11,6 @@ digraph es = Text.unlines
]
edges :: [NonEmpty Text] -> Text
edges = Text.unlines . fmap ((\(x :| xs) -> Text.unlines $ (\y -> x <> " -> " <> y <> ";") <$> xs))
edges = Text.unlines . fmap f
where
f (x :| xs) = Text.unlines $ (\y -> x <> " -> " <> y <> ";") <$> xs

View File

@ -147,7 +147,7 @@ instance FromJSON Casgn where
_ -> empty
data Array = Array
newtype Array = Array
{ statements :: [Statement]
}
deriving stock instance Show Array
@ -443,7 +443,7 @@ instance FromJSON Lvasgn where
[Aeson.String "lvasgn", atom, statement] -> Lvasgn <$> parseJSON atom <*> parseJSON statement
_ -> empty
data Lvar = Lvar
newtype Lvar = Lvar
{ atom :: Atom
}
@ -458,7 +458,7 @@ instance FromJSON Lvar where
[Aeson.String "lvar", atom] -> Lvar <$> parseJSON atom
_ -> empty
data Ivar = Ivar
newtype Ivar = Ivar
{ atom :: Atom
}