axel 0.0.3 → 0.0.4
raw patch · 2 files changed
+11/−10 lines, 2 filesdep ~yamlPVP ok
version bump matches the API change (PVP)
Dependency ranges changed: yaml
API changes (from Hackage documentation)
+ Axel.Parse.AST: LiteralChar :: Char -> Expression
+ Axel.Parse.AST: LiteralInt :: Int -> Expression
+ Axel.Parse.AST: LiteralString :: String -> Expression
+ Axel.Parse.AST: SExpression :: [Expression] -> Expression
+ Axel.Parse.AST: Symbol :: String -> Expression
+ Axel.Parse.AST: data Expression
+ Axel.Parse.AST: gensym :: IO Expression
+ Axel.Parse.AST: gensymCounter :: IORef Int
+ Axel.Parse.AST: instance GHC.Classes.Eq Axel.Parse.AST.Expression
+ Axel.Parse.AST: instance GHC.Show.Show Axel.Parse.AST.Expression
+ Axel.Parse.AST: toAxel :: Expression -> String
Files
- axel.cabal +5/−5
- src/Axel/Project.hs +6/−5
axel.cabal view
@@ -2,10 +2,10 @@ -- -- see: https://github.com/sol/hpack ----- hash: e26c150d164cb5b9dc90bf0ba0d5a3697e068c1128d669d65b9c6edaa3f0f1b1+-- hash: deb466082a59f53f497793cec5211f873c7f26948954aad70363885d5cd568bd name: axel-version: 0.0.3+version: 0.0.4 synopsis: The Axel programming language. description: Haskell's semantics, plus Lisp's macros. Meet Axel – a purely functional, extensible, and powerful programming language. category: Language, Lisp, Macros, Transpiler@@ -46,6 +46,7 @@ library exposed-modules:+ Axel.Parse.AST Axel.Project other-modules: Axel.AST@@ -57,7 +58,6 @@ Axel.Macros Axel.Normalize Axel.Parse- Axel.Parse.AST Axel.Quote Axel.Utils.Debug Axel.Utils.Directory@@ -70,7 +70,7 @@ Paths_axel hs-source-dirs: src- ghc-options: -Wall -Wmissing-import-lists -Wincomplete-record-updates -Wincomplete-uni-patterns+ ghc-options: -Wall -Wcpp-undef -Widentities -Wincomplete-record-updates -Wincomplete-uni-patterns -Wmissing-home-modules -Wmissing-import-lists -Wpartial-fields -Wredundant-constraints build-depends: base >=4.11.1 && <4.12 , directory >=1.3 && <1.4@@ -96,7 +96,7 @@ Paths_axel hs-source-dirs: app- ghc-options: -Wall -Wmissing-import-lists -Wincomplete-record-updates -Wincomplete-uni-patterns -threaded -rtsopts -with-rtsopts=-N+ ghc-options: -Wall -Wcpp-undef -Widentities -Wincomplete-record-updates -Wincomplete-uni-patterns -Wmissing-home-modules -Wmissing-import-lists -Wpartial-fields -Wredundant-constraints -threaded -rtsopts -with-rtsopts=-N build-depends: axel , base >=4.11.1 && <4.12
src/Axel/Project.hs view
@@ -21,7 +21,7 @@ import Paths_axel (getDataFileName, version) -import System.Directory (copyFile, getCurrentDirectory, removeFile)+import System.Directory (copyFile, removeFile, setCurrentDirectory) import System.FilePath ((</>)) import System.Process (readProcess, readProcessWithExitCode) import System.Process.Typed (proc, runProcess)@@ -30,15 +30,16 @@ newProject :: String -> IO () newProject projectName = do- currentDirectory <- getCurrentDirectory void $ readProcess "stack" ["new", projectName, "new-template"] ""- let projectDirectory = currentDirectory </> projectName+ setCurrentDirectory projectName+ void $+ readProcess "stack" ["config", "set", "resolver", "nightly-2018-08-17"] "" templatePath <- getDataFileName ("resources" </> "new-project-template") let copyAxel filePath = do copyFile (templatePath </> filePath <> ".axel")- (projectDirectory </> filePath <> ".axel")- removeFile (projectDirectory </> filePath <> ".hs")+ (projectName </> filePath <> ".axel")+ removeFile (projectName </> filePath <> ".hs") mapM_ copyAxel ["Setup", "app" </> "Main", "src" </> "Lib", "test" </> "Spec"] transpileProject :: IO [FilePath]