packages feed

ConsoleAsk 0.1.0.0 → 0.1.0.1

raw patch · 3 files changed

+5/−2 lines, 3 files

Files

CHANGELOG.md view
@@ -1,2 +1,5 @@+# 0.1.0.1
+- Added compatibility with text-2.1.1 and below.
+
 # 0.1.0.0
 Initial release.
ConsoleAsk.cabal view
@@ -1,7 +1,7 @@ cabal-version: 2.2
 
 name:           ConsoleAsk
-version:        0.1.0.0
+version:        0.1.0.1
 description:    Please see the README on GitHub at <https://github.com/t-sasaki915/ConsoleAsk#readme>
 synopsis:       Simple CLI user input library
 homepage:       https://github.com/t-sasaki915/ConsoleAsk#readme
src/System/Console/Ask/Internal.hs view
@@ -55,7 +55,7 @@             TextIO.putStrLn question
 
         Just defaultVal' ->
-            let defaultValMessage = _defaultValueViewer behaviour (Text.show defaultVal') in
+            let defaultValMessage = _defaultValueViewer behaviour (Text.pack $ show defaultVal') in
                 case _defaultValueStyle behaviour of
                     OnQuestionLine ->
                         TextIO.putStrLn (question <> " (" <> defaultValMessage <> ")")