Safe Haskell | None |
---|---|
Language | Haskell2010 |
Dhall.LSP.Backend.ToJSON
Synopsis
- data CompileError
- toJSON :: WellTyped -> Either CompileError Text
Documentation
data CompileError #
This is the exception type for errors that might arise when translating Dhall to JSON
Because the majority of Dhall language features do not translate to JSON this just returns the expression that failed
Instances
Show CompileError | |
Defined in Dhall.JSON Methods showsPrec :: Int -> CompileError -> ShowS # show :: CompileError -> String # showList :: [CompileError] -> ShowS # | |
Exception CompileError | |
Defined in Dhall.JSON Methods toException :: CompileError -> SomeException # fromException :: SomeException -> Maybe CompileError # displayException :: CompileError -> String # |