Skip to main content

typed_literal

Function typed_literal 

Source
pub fn typed_literal(ws: &CheckedWorkspace, value: &Value, ty: &Type) -> String
Expand description

Writes a value as a Haskell literal of ty.

This is the language’s way of writing a literal against its type, and the body writer’s way of writing a constant. Every result stands as an argument.