Skip to content

Commit

Permalink
feat(hamler): ready to release version 0.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
EMQ-YangM authored and sdzx-1 committed Aug 22, 2020
1 parent 91466ad commit ca2b774
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 9 deletions.
8 changes: 3 additions & 5 deletions app/Compile.hs
Original file line number Diff line number Diff line change
Expand Up @@ -98,13 +98,13 @@ howBuild :: Opts.Parser Bool
howBuild= Opts.switch $
Opts.short 'l'
<> Opts.long "libraries"
<> Opts.help "build the libraries to ebin"
<> Opts.help "build the libraries to ebin (only develop)"

inline :: Opts.Parser Bool
inline= Opts.switch $
Opts.short 'i'
<> Opts.long "inline"
<> Opts.help "Determine whether to inline functions when reading .core"
<> Opts.help "Determine whether to inline functions (no effect at this stage)"

outputDirectory :: Opts.Parser FilePath
outputDirectory = Opts.strOption $
Expand All @@ -115,9 +115,7 @@ outputDirectory = Opts.strOption $
<> Opts.help "The output directory"

command :: Opts.Parser (IO ())
command = buildFun <$> inline
<*> howBuild
<*> outputDirectory
command = Opts.helper <*> (buildFun <$> inline <*> howBuild <*> outputDirectory)

buildFun ::Bool -> Bool -> FilePath -> IO ()
buildFun isIn b fp = if b
Expand Down
4 changes: 2 additions & 2 deletions hamler.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ cabal-version: 1.12
--
-- see: https://github.com/sol/hpack
--
-- hash: 41ba2717515c2eb5b90b0a1770c01bb4a54054393322c1a98b232bd8a59d1b78
-- hash: 7998d9c4327451a320ef331015b5519776e27bf4e779dc5c6a00334972417b0d

name: hamler
version: 0.2
version: 0.2.1
synopsis: The Hamler Programming Language
description: Hamler is a functional programming language inspired by Haskell and Standard ML, that compiles to CoreErlang.
category: Language, Compiler
Expand Down
2 changes: 1 addition & 1 deletion package.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: hamler
version: '0.2'
version: '0.2.1'
synopsis: The Hamler Programming Language
description: Hamler is a functional programming language inspired by Haskell and Standard ML,
that compiles to CoreErlang.
Expand Down
2 changes: 1 addition & 1 deletion stack.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ extra-deps:
- github: hamler-lang/CoreErlang
commit: c0466e103b312f32afe23c4f484b534c1591a0b2
- github: hamler-lang/purescript
commit: 985068c469b5929037e709ef7d80950a23512d92
commit: cb59182337e2b46cf9cc1e560fdb86507b16e73f
- megaparsec-8.0.0@sha256:362f85e243ecbcb550e1de6e5c74ba5a50c09edaa1208c99bc5b9fd242227fc6,3808
flags:
these:
Expand Down

0 comments on commit ca2b774

Please sign in to comment.