Skip to content

Commit

Permalink
style changes
Browse files Browse the repository at this point in the history
  • Loading branch information
lukaszcz committed Feb 9, 2023
1 parent c902131 commit 7eb857b
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/Juvix/Compiler/Core/Translation/FromInternal.hs
Original file line number Diff line number Diff line change
Expand Up @@ -782,13 +782,13 @@ goLiteral intToNat l = case l ^. withLocParam of
getAxiomBuiltinInfo :: Member (Reader Internal.InfoTable) r => Name -> Sem r (Maybe BuiltinAxiom)
getAxiomBuiltinInfo n = do
maybeAxiomInfo <- HashMap.lookup n <$> asks (^. Internal.infoAxioms)
case maybeAxiomInfo of
Just axiomInfo -> return $ axiomInfo ^. Internal.axiomInfoBuiltin
Nothing -> return Nothing
return $ case maybeAxiomInfo of
Just axiomInfo -> axiomInfo ^. Internal.axiomInfoBuiltin
Nothing -> Nothing

getFunctionBuiltinInfo :: Member (Reader Internal.InfoTable) r => Name -> Sem r (Maybe BuiltinFunction)
getFunctionBuiltinInfo n = do
maybeFunInfo <- HashMap.lookup n <$> asks (^. Internal.infoFunctions)
case maybeFunInfo of
Just funInfo -> return $ funInfo ^. Internal.functionInfoDef . Internal.funDefBuiltin
Nothing -> return Nothing
return $ case maybeFunInfo of
Just funInfo -> funInfo ^. Internal.functionInfoDef . Internal.funDefBuiltin
Nothing -> Nothing

0 comments on commit 7eb857b

Please sign in to comment.