homepage: https://github.com/ishiy1993/fillit#readme
changelog-type: ''
hash: 8cd1c894dc1fe26a50683240a63e3ba27d8ce93b04868a58eb7aa9d4c54005d2
test-bench-deps:
  fillit: -any
  base: ! '>=4.7 && <5'
  unordered-containers: -any
  hspec: -any
  doctest: -any
maintainer: ishiy <y.ishihara.1993@gmail.com>
synopsis: Flexible string substitution
changelog: ''
basic-deps:
  base: ! '>=4.7 && <5'
  unordered-containers: -any
  text: -any
  parsec: -any
  data-default: -any
all-versions:
- '0.1.0.0'
author: ishiy <y.ishihara.1993@gmail.com>
latest: '0.1.0.0'
description-type: markdown
description: ! '# fillit

  Flexible String Substitution library


  ## Features


  - Support two kinds of substitutions: required and optional.

  - You can change the symbols for substitutions.


  Note: This library does not support any sanitization.


  ## Usage

  Example:


  ```

  ghci> :set -XOverloadedStrings

  ghci> import Data.Text.Fillit

  ghci> import qualified Data.HashMap.Lazy as HM

  ghci> let dic = HM.fromList [("name", "Tom"), ("age", "22")]

  ghci> fill "$name$ (%age%)" dic

  Right "Tom (22)"

  ghci> fill "$name$ (%school%)" dic

  Right "Tom (%school%)"

  ghci> fill "$name$ ($school$)" dic

  Left "There is no key in dict, such as school"

  ```


  By default, the symbol `$` means a required substitution.

  On the other hand, the symbol `%` means a optional substitution.

  These symbols can be changed. See `fill''`.


  ## Development


  ```

  $ git clone git@github.com:ishiy1993/fillit.git

  $ cd fillit

  $ stack build

  $ stack test

  ```

'
license-name: BSD3

Update from Hackage at 2017-09-06T21:23:14Z
Update from Hackage at 2017-09-06T21:23:14Z
