copilot-core-3.9: An intermediate representation for Copilot.
Safe HaskellSafe
LanguageHaskell2010

Copilot.Core.Type.Show

Description

Show Copilot Core types and typed values.

Synopsis

Documentation

data ShowWit a Source #

Deprecated: This type is deprecated in Copilot 3.7.

Witness datatype for showing a value, used by showWithType.

Constructors

Show a => ShowWit

Deprecated: This type is deprecated in Copilot 3.7.

showWithType :: ShowType -> Type a -> a -> String Source #

Show a value. The representation depends on the type and the target language. Booleans are represented differently depending on the backend.

data ShowType Source #

Target language for showing a typed value. Used to adapt the representation of booleans.

Constructors

C 
Haskell 

showType :: Type a -> String Source #

Show Copilot Core type.