Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/kseo/ini-qq
- Owner: kseo
- License: bsd-3-clause
- Created: 2016-07-15T02:08:47.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-08-30T12:07:11.000Z (about 8 years ago)
- Last Synced: 2024-09-26T02:30:46.704Z (about 1 month ago)
- Language: Haskell
- Homepage: https://hackage.haskell.org/package/ini-qq
- Size: 7.81 KB
- Stars: 5
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.QQtestIni :: 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=|]
```