Safe Haskell | None |
---|---|
Language | Haskell2010 |
This modules exports internals soley for the purpose of importing them in the test suite
Synopsis
- data DidFile = DidFile {}
- data TestAssertion
- data TestInput
- data CandidTest a = CandidTest {
- testLine :: Int
- testAssertion :: TestAssertion
- testType :: [Type a]
- testDesc :: Maybe Text
- data CandidTestFile = CandidTestFile {
- testDefs :: [DidDef TypeName]
- testTests :: [CandidTest TypeName]
- parseCandidTests :: String -> String -> Either String CandidTestFile
- generateCandidDefs :: Text -> [DidDef TypeName] -> Q ([Dec], TypeName -> Q Name)
- candidTypeQ :: [Type Name] -> TypeQ
- invertHash :: Word32 -> Maybe Text
- unrollTypeTable :: SeqDesc -> (forall k. (Pretty k, Ord k) => [Type (Ref k Type)] -> r) -> r
- typeGraph :: forall a. Candid a => Type (Ref TypeRep Type)
Documentation
data TestAssertion Source #
data CandidTest a Source #
CandidTest | |
|
Instances
data CandidTestFile Source #
A candid test file
(no support for type definitions yet)
CandidTestFile | |
|
parseCandidTests :: String -> String -> Either String CandidTestFile Source #
Parses a candid spec test file from a string
generateCandidDefs :: Text -> [DidDef TypeName] -> Q ([Dec], TypeName -> Q Name) Source #
Turns all candid type definitions into newtypes Used, so far, only in the Candid test suite runner