1 {-# LANGUAGE OverloadedStrings
5 import Data
.Text
(Text
)
6 import Database
.Persist
.TH
(derivePersistField
)
10 , lineCurrency
:: Text
12 deriving (Show, Eq
, Ord
, Read)
17 deriving (Eq
, Ord
, Read, Show)
18 derivePersistField
"Fund"
20 bitStamp
, rippleCN
:: Text
21 bitStamp
= "rvYAfWj5gh67oV6fW32ZzP3Aw4Eubs59B"
22 rippleCN
= "rnuF96W4SZoCJmbHYBFoJZpR8eCaxNvekK"
24 btcBitstamp
, usdBitstamp
, cnyRippleCN
:: Fund
25 btcBitstamp
= IOUFund
$ IOULine
{peerAccount
= bitStamp
, lineCurrency
= "BTC"}
26 usdBitstamp
= IOUFund
$ IOULine
{peerAccount
= bitStamp
, lineCurrency
= "USD"}
27 cnyRippleCN
= IOUFund
$ IOULine
{peerAccount
= rippleCN
, lineCurrency
= "CNY"}