Test the encoding and decoding

This commit is contained in:
2020-12-31 08:51:37 +02:00
parent 213e94c896
commit 98f732dbd2
4 changed files with 54 additions and 0 deletions

View File

@ -5,6 +5,7 @@ module Data.Buuka
, BuukaU(..)
, BuukaEntry(..)
, URL(..)
, Buuka
, insert
)
@ -38,6 +39,7 @@ instance SafeJSON BuukaEntry where
type Version BuukaEntry = 0
newtype Buuka = Buuka ( Map URL BuukaEntry )
deriving stock (Show, Eq)
deriving newtype (Semigroup, Monoid, FromJSON, ToJSON)
insert :: BuukaEntry -> Buuka -> Buuka