citeproc-hs-0.3.2: A Citation Style Language implementation in Haskell

Portabilityunportable
Stabilityunstable
MaintainerAndrea Rossato <andrea.rossato@unitn.it>

Text.CSL.Input.Json

Description

A module for reading Frank's citeproc-js testsuite.

Documentation

toTest :: JSValue -> Test

runTS :: [String] -> Int -> FilePath -> IO ()

test :: FilePath -> IO Bool

test' :: Int -> FilePath -> IO Bool

test_ :: Int -> FilePath -> IO Bool

runTest :: Test -> IO (Bool, String)

data Test

Constructors

Test 

Fields

testMode :: String
 
testInput :: [Reference]
 
testCSL :: Style
 
testResult :: String
 
testBibSect :: BibOpts
 
testCitItems :: Maybe Citations
 
testCitations :: Maybe Citations
 

Instances

Show Test 

mapJSArray :: (JSValue -> JSValue) -> JSValue -> JSValue

readJsonInput :: FilePath -> IO [Reference]