Agda-2.2.6: A dependently typed functional programming language and proof assistant

Agda.TypeChecking.Serialise

Description

Structure-sharing serialisation of Agda interface files.

Synopsis

Documentation

encode :: EmbPrj a => a -> TCM ByteStringSource

Encodes something. To ensure relocatability file paths in positions are replaced with module names.

encodeFileSource

Arguments

:: EmbPrj a 
=> FilePath

The encoded data is written to this file.

-> a

Something.

-> TCM () 

Encodes something. To ensure relocatability file paths in positions are replaced with module names.

decode :: EmbPrj a => ByteString -> TCM (Maybe a)Source

Decodes something. The result depends on the include path.

Returns Nothing if the input does not start with the right magic number or some other decoding error is encountered.

decodeFile :: EmbPrj a => FilePath -> TCM (Maybe a)Source

Decodes something. The result depends on the include path.

Returns Nothing if the file does not start with the right magic number or some other decoding error is encountered.