git.iko.soy/rowtype-yoga/purescript-native
on golang help sign in
Update build dependency to purs v0.13.8 src (no behavior changes)
commitd96eb4014fbec2d18108e60636ab42ffdc27a75c authorAndy Arvanitis <andyarvanitis@gmail.com> dateTue 8 Dec 2020, 19:36 (6 years ago) parent7a62868
3 files changed+5−5
src/CodeGen/IL.hs+1−1 src/CodeGen/IL/Common.hs+3−3 stack.yaml+1−1
src/CodeGen/IL.hs+1−1
@@ -201,7 +201,7 @@ moduleToIL (Module _ coms mn _ imps _ foreigns decls) project =
201201 -- | Generate code in the simplified intermediate representation for a reference to a
202202 -- variable that may have a qualified name.
203203 qualifiedToIL :: (a -> Ident) -> Qualified a -> AST
204− qualifiedToIL f (Qualified (Just (ModuleName [ProperName mn'])) a) | mn' == C.prim = AST.Var Nothing . moduleIdentToIL $ f a
204+ qualifiedToIL f (Qualified (Just (ModuleName mn')) a) | mn' == C.prim = AST.Var Nothing . moduleIdentToIL $ f a
205205 qualifiedToIL f (Qualified (Just mn') a) | mn /= mn' = AST.Indexer Nothing (AST.Var Nothing . moduleIdentToIL $ f a) (AST.Var Nothing (moduleNameToIL mn'))
206206 qualifiedToIL f (Qualified _ a) = AST.Indexer Nothing (AST.Var Nothing . moduleIdentToIL $ f a) (AST.Var Nothing "")
207207
src/CodeGen/IL/Common.hs+3−3
@@ -16,12 +16,12 @@ import Language.PureScript.Names
1616import qualified Language.PureScript.Constants as C
1717
1818moduleNameToIL :: ModuleName -> Text
19−moduleNameToIL (ModuleName pns) =
20− let name = T.intercalate "_" (runProperName `map` pns)
19+moduleNameToIL (ModuleName mn) =
20+ let name = T.replace "." "_" mn
2121 in if nameIsILBuiltIn name then (name <> moduleRenamerMarker) else name
2222
2323moduleNameToIL' :: ModuleName -> Text
24−moduleNameToIL' (ModuleName pns) = T.intercalate "." (runProperName `map` pns)
24+moduleNameToIL' (ModuleName mn) = T.replace "_" "." mn
2525
2626-- | Convert an 'Ident' into a valid IL identifier:
2727--
stack.yaml+1−1
@@ -5,7 +5,7 @@ packages:
55
66extra-deps:
77- git: https://github.com/purescript/purescript
8− commit: 4dd32c48a372bb8a5250140d19af8aa18a6358d7
8+ commit: 9cad73ed8ea7df3011032ddbd2f3de5a0c08629c
99- happy-1.19.9
1010- language-javascript-0.7.0.0
1111- network-3.0.1.1