haskellscript 0.1.1 → 0.1.2
raw patch · 1 files changed
+3/−2 lines, 1 files
Files
- haskellscript.cabal +3/−2
haskellscript.cabal view
@@ -1,5 +1,5 @@ name: haskellscript-version: 0.1.1+version: 0.1.2 synopsis: Command line tool for running Haskell scripts with a hashbang. description: This tool provides the ability to script in a shell with Haskell (including dependencies) the same way that has been possible with bash scripts or Python.@@ -32,7 +32,8 @@ > import Data.ByteString.Lazy hiding (putStrLn, unpack) > import Data.Text > import Data.Text.Encoding- > main = putStrLn $ unpack $ decodeUtf8 $ toStrict $ encode $ object ["Test" .= True, "Example" .= True]+ > jsonExample = object ["Test" .= True, "Example" .= True]+ > main = putStrLn $ unpack $ decodeUtf8 $ toStrict $ encode jsonExample . Note that because the dependencies specified are hashed to enable re-use it's worth specifying exact versions across multiple scripts to prevent the version used being quite old after a while.