<commit_before>homepage: http://github.com/seanparsons/haskellscript/
changelog-type: ''
hash: fbe6886e0048656d08bce8b7436e0afbd66d8d269b3ae9f2536749e53ba95ea6
test-bench-deps: {}
maintainer: <EMAIL>
synopsis: Command line tool for running Haskell scripts with a hashbang.
changelog: ''
basic-deps:
  either: -any
  base: ! '>=4.6 && <4.9'
  text: -any
  filepath: -any
  process: -any
  mtl: -any
  directory: -any
  cryptohash: -any
all-versions:
- '0.1.0.1'
- '0.1.1'
author: <NAME>
latest: '0.1.1'
description-type: haddock
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.


  /Examples/


  Print out JSON constructed with Aeson


  <https://github.com/seanparsons/haskellscript/blob/master/Example.hs>


  /Prerequisites/


  A sandbox capable install of [Cabal](https://www.haskell.org/cabal/)


  /Howto/


  The script falls into three main parts:


  * The hashbang first line:


  > #!/usr/bin/env haskellscript


  * Dependencies (potentially including versions):


  > --#aeson


  * The code:


  > import Data.Aeson

  > 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]


  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.'
license-name: BSD3<commit_msg>Update from Hackage at 2015-05-19T08:20:51+0000<commit_after>homepage: http://github.com/seanparsons/haskellscript/
changelog-type: ''
hash: 525d77749dd9b07ee96c2e28f626ad359a9fcb975e4a354df69ca40da03872b7
test-bench-deps: {}
maintainer: <EMAIL>
synopsis: Command line tool for running Haskell scripts with a hashbang.
changelog: ''
basic-deps:
  either: -any
  base: ! '>=4.6 && <4.9'
  text: -any
  filepath: -any
  process: -any
  mtl: -any
  directory: -any
  cryptohash: -any
all-versions:
- '0.1.0.1'
- '0.1.1'
- '0.1.2'
author: <NAME>
latest: '0.1.2'
description-type: haddock
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.


  /Examples/


  Print out JSON constructed with Aeson


  <https://github.com/seanparsons/haskellscript/blob/master/Example.hs>


  /Prerequisites/


  A sandbox capable install of [Cabal](https://www.haskell.org/cabal/)


  /Howto/


  The script falls into three main parts:


  * The hashbang first line:


  > #!/usr/bin/env haskellscript


  * Dependencies (potentially including versions):


  > --#aeson


  * The code:


  > import Data.Aeson

  > import Data.ByteString.Lazy hiding (putStrLn, unpack)

  > import Data.Text

  > import Data.Text.Encoding

  > 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.'
license-name: BSD3
{'fraction_non_alphanumeric': 0.10706703063390961, 'fraction_numerical': 0.040036396724294813, 'mean_word_length': 3.5678670360110805, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 26, 'https://': 4, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 2, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5371177', 'n_tokens_mistral': 1261, 'n_tokens_neox': 1107, 'n_words': 334}