Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/kseo/ini-qq

Quasiquoter for INI
https://github.com/kseo/ini-qq

Last synced: 27 days ago
JSON representation

Quasiquoter for INI

Awesome Lists containing this project

README

        

ini-qq [![Hackage](https://img.shields.io/hackage/v/ini-qq.svg?style=flat)](https://hackage.haskell.org/package/ini-qq) [![Build Status](https://travis-ci.org/kseo/ini-qq.svg?branch=master)](https://travis-ci.org/kseo/ini-qq)
======

Quasiquote for INI.

## Usage

```haskell
{-# LANGUAGE QuasiQuotes #-}

import Data.Ini
import Data.Ini.QQ

testIni :: Ini
testIni = [ini|
# Some comment.
[SERVER]
port=6667
hostname=localhost
; another comment here
[AUTH]
user: hello
pass: world
salt:|]
# Some comment.
[SERVER]
port=6667
hostname=localhost
[AUTH]
user=hello
pass=world
# Salt can be an empty string.
salt=|]
```