git.iko.soy/rowtype-yoga/purescript-native
on golang help sign in
Change executable name to pscpp
080f35fAndy Arvanitis
ChangeLog.md+1−1
@@ -1,3 +1,3 @@
1−# Changelog for purecc
1+# Changelog for pscpp
2
2
3## Unreleased changes
3## Unreleased changes
package.yaml+9−9
@@ -1,10 +1,10 @@
1−name: purecc
1+name: pscpp
2version: 0.1.0.0
2version: 0.1.0.0
3−github: "githubuser/purecc"
3+github: "andyarvanitis/purescript-cpp"
4license: BSD3
4license: BSD3
5−author: "Author name here"
5+author: "Andy Arvanitis"
6maintainer: "example@example.com"
6maintainer: "example@example.com"
7−copyright: "2018 Author name here"
7+copyright: "2018 Andy Arvanitis"
8
8
9extra-source-files:
9extra-source-files:
10- README.md
10- README.md
@@ -17,7 +17,7 @@ extra-source-files:
17# To avoid duplicated efforts in documentation and dealing with the
17# To avoid duplicated efforts in documentation and dealing with the
18# complications of embedding Haddock markup inside cabal files, it is
18# complications of embedding Haddock markup inside cabal files, it is
19# common to point users to the README.md file.
19# common to point users to the README.md file.
20−description: Please see the README on Github at <https://github.com/githubuser/purecc#readme>
20+description: Please see the README on Github at <https://github.com/andyarvanitis/purescript-cpp#readme>
21
21
22dependencies:
22dependencies:
23- base >= 4.7 && < 5
23- base >= 4.7 && < 5
@@ -58,7 +58,7 @@ library:
58 - ViewPatterns
58 - ViewPatterns
59
59
60executables:
60executables:
61− purecc:
61+ pscpp:
62 main: Main.hs
62 main: Main.hs
63 source-dirs: app
63 source-dirs: app
64 ghc-options:
64 ghc-options:
@@ -66,10 +66,10 @@ executables:
66 - -rtsopts
66 - -rtsopts
67 - -with-rtsopts=-N
67 - -with-rtsopts=-N
68 dependencies:
68 dependencies:
69− - purecc
69+ - pscpp
70
70
71tests:
71tests:
72− purecc-test:
72+ pscpp-test:
73 main: Spec.hs
73 main: Spec.hs
74 source-dirs: test
74 source-dirs: test
75 ghc-options:
75 ghc-options:
@@ -77,4 +77,4 @@ tests:
77 - -rtsopts
77 - -rtsopts
78 - -with-rtsopts=-N
78 - -with-rtsopts=-N
79 dependencies:
79 dependencies:
80− - purecc
80+ - pscpp
purecc.cabal → pscpp.cabalrenamed+15−15
@@ -2,16 +2,16 @@
2--
2--
3-- see: https://github.com/sol/hpack
3-- see: https://github.com/sol/hpack
4--
4--
5−-- hash: 0d9df9089392ad0c15d94a9c539993640aa31983b415eb926d9e920d2836beb5
5+-- hash: e5a3087784164da529b9f673d964db77b198c936e428ed7c2fe54b479a06d0c7
6
6
7−name: purecc
7+name: pscpp
8version: 0.1.0.0
8version: 0.1.0.0
9−description: Please see the README on Github at <https://github.com/githubuser/purecc#readme>
9+description: Please see the README on Github at <https://github.com/andyarvanitis/purescript-cpp#readme>
10−homepage: https://github.com/githubuser/purecc#readme
10+homepage: https://github.com/andyarvanitis/purescript-cpp#readme
11−bug-reports: https://github.com/githubuser/purecc/issues
11+bug-reports: https://github.com/andyarvanitis/purescript-cpp/issues
12−author: Author name here
12+author: Andy Arvanitis
13maintainer: example@example.com
13maintainer: example@example.com
14−copyright: 2018 Author name here
14+copyright: 2018 Andy Arvanitis
15license: BSD3
15license: BSD3
16license-file: LICENSE
16license-file: LICENSE
17build-type: Simple
17build-type: Simple
@@ -22,7 +22,7 @@ extra-source-files:
22
22
23source-repository head
23source-repository head
24 type: git
24 type: git
25− location: https://github.com/githubuser/purecc
25+ location: https://github.com/andyarvanitis/purescript-cpp
26
26
27library
27library
28 exposed-modules:
28 exposed-modules:
@@ -33,7 +33,7 @@ library
33 CodeGen.Cpp.Printer
33 CodeGen.Cpp.Printer
34 Tests
34 Tests
35 other-modules:
35 other-modules:
36− Paths_purecc
36+ Paths_pscpp
37 hs-source-dirs:
37 hs-source-dirs:
38 src
38 src
39 default-extensions: ConstraintKinds DataKinds DeriveFunctor EmptyDataDecls FlexibleContexts KindSignatures LambdaCase MultiParamTypeClasses NoImplicitPrelude PatternGuards PatternSynonyms RankNTypes RecordWildCards OverloadedStrings ScopedTypeVariables TupleSections ViewPatterns
39 default-extensions: ConstraintKinds DataKinds DeriveFunctor EmptyDataDecls FlexibleContexts KindSignatures LambdaCase MultiParamTypeClasses NoImplicitPrelude PatternGuards PatternSynonyms RankNTypes RecordWildCards OverloadedStrings ScopedTypeVariables TupleSections ViewPatterns
@@ -55,10 +55,10 @@ library
55 , transformers >=0.3.0 && <0.6
55 , transformers >=0.3.0 && <0.6
56 default-language: Haskell2010
56 default-language: Haskell2010
57
57
58−executable purecc
58+executable pscpp
59 main-is: Main.hs
59 main-is: Main.hs
60 other-modules:
60 other-modules:
61− Paths_purecc
61+ Paths_pscpp
62 hs-source-dirs:
62 hs-source-dirs:
63 app
63 app
64 ghc-options: -threaded -rtsopts -with-rtsopts=-N
64 ghc-options: -threaded -rtsopts -with-rtsopts=-N
@@ -74,18 +74,18 @@ executable purecc
74 , pattern-arrows >=0.0.2 && <0.1
74 , pattern-arrows >=0.0.2 && <0.1
75 , process
75 , process
76 , protolude >=0.1.6
76 , protolude >=0.1.6
77− , purecc
77+ , pscpp
78 , purescript
78 , purescript
79 , safe >=0.3.9 && <0.4
79 , safe >=0.3.9 && <0.4
80 , text
80 , text
81 , transformers >=0.3.0 && <0.6
81 , transformers >=0.3.0 && <0.6
82 default-language: Haskell2010
82 default-language: Haskell2010
83
83
84−test-suite purecc-test
84+test-suite pscpp-test
85 type: exitcode-stdio-1.0
85 type: exitcode-stdio-1.0
86 main-is: Spec.hs
86 main-is: Spec.hs
87 other-modules:
87 other-modules:
88− Paths_purecc
88+ Paths_pscpp
89 hs-source-dirs:
89 hs-source-dirs:
90 test
90 test
91 ghc-options: -threaded -rtsopts -with-rtsopts=-N
91 ghc-options: -threaded -rtsopts -with-rtsopts=-N
@@ -101,7 +101,7 @@ test-suite purecc-test
101 , pattern-arrows >=0.0.2 && <0.1
101 , pattern-arrows >=0.0.2 && <0.1
102 , process
102 , process
103 , protolude >=0.1.6
103 , protolude >=0.1.6
104− , purecc
104+ , pscpp
105 , purescript
105 , purescript
106 , safe >=0.3.9 && <0.4
106 , safe >=0.3.9 && <0.4
107 , text
107 , text
src/CodeGen/Cpp/Printer.hs+1−1
@@ -420,7 +420,7 @@ renderOp op
420
420
421interfaceSource :: Text -> [Ident] -> [Ident] -> Text
421interfaceSource :: Text -> [Ident] -> [Ident] -> Text
422interfaceSource mn exports foreigns =
422interfaceSource mn exports foreigns =
423− "// Generated by purecc compiler\n\n" <>
423+ "// Generated by pscpp compiler\n\n" <>
424 "#ifndef " <> mn <> "_H\n" <>
424 "#ifndef " <> mn <> "_H\n" <>
425 "#define " <> mn <> "_H\n\n" <>
425 "#define " <> mn <> "_H\n\n" <>
426 "#include \"purescript.h\"\n" <>
426 "#include \"purescript.h\"\n" <>
support/Makefile+2−2
@@ -16,7 +16,7 @@
16#
16#
17PURS := purs
17PURS := purs
18PSC_PACKAGE := psc-package
18PSC_PACKAGE := psc-package
19−PSOBJC := purecc
19+PSCPP := pscpp
20SRC := src
20SRC := src
21OUTPUT := output
21OUTPUT := output
22CC_SRC := $(OUTPUT)/src
22CC_SRC := $(OUTPUT)/src
@@ -53,7 +53,7 @@ corefn: $(PURESCRIPT_PKGS)
53.PHONY: codegen
53.PHONY: codegen
54codegen: COREFN_SRCS=$(call rwildcard,$(OUTPUT)/,corefn.json)
54codegen: COREFN_SRCS=$(call rwildcard,$(OUTPUT)/,corefn.json)
55codegen: corefn
55codegen: corefn
56− @$(PSOBJC) $(COREFN_SRCS)
56+ @$(PSCPP) $(COREFN_SRCS)
57
57
58$(PURESCRIPT_PKGS):
58$(PURESCRIPT_PKGS):
59 @echo "Getting packages using" $(PSC_PACKAGE) "..."
59 @echo "Getting packages using" $(PSC_PACKAGE) "..."