Skip to content
This repository has been archived by the owner on May 9, 2023. It is now read-only.

Commit

Permalink
release 0.2.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ghsable committed May 8, 2023
1 parent 96f6c39 commit b039a05
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Revision history for pwdh

## 0.2.1.0 -- 2023-05-08

* Minor update.

## 0.2.0.0 -- 2022-05-25

* Add Options.
Expand Down
2 changes: 1 addition & 1 deletion pwdh.cabal
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
cabal-version: 3.0
name: pwdh
version: 0.3.0.0
version: 0.2.1.0
synopsis: pwdh is pwd.

-- A longer description of the package.
Expand Down
2 changes: 1 addition & 1 deletion src/Lib.hs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ getPutStr (len, opt)
\ --version output version information and exit\n\
\\n\
\If no option is specified, -P is assumed.\n"
| opt == "--version" = return "pwdh 0.3.0.0 created by dativus"
| opt == "--version" = return "pwdh 0.2.1.0 created by dativus"
| otherwise = return $ "pwdh: bad option: " ++ opt

getOption :: [String] -> IO (Int, String)
Expand Down
2 changes: 1 addition & 1 deletion test/Src/LibSpec.hs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ spec = do
f `shouldBe` "Print the full filename of the current working directory.\n\n-P, --physical avoid all symlinks\n\n --help display this help and exit\n\n --version output version information and exit\n\nIf no option is specified, -P is assumed.\n"

g <- Lib.getPutStr (1, "--version")
g `shouldBe` "pwdh 0.3.0.0 created by dativus"
g `shouldBe` "pwdh 0.2.1.0 created by dativus"

h <- Lib.getPutStr (1, "-Z")
h `shouldBe` "pwdh: bad option: -Z"
Expand Down

0 comments on commit b039a05

Please sign in to comment.