Sitelet https://github.com/purescript/purescript-unsafe-coerce
Skip to content

Latest commit

 

History

51 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

purescript-unsafe-coerce

Latest release Build status Pursuit

A highly unsafe function, which can be used to persuade the type system that any type is the same as any other type. When using this function, it is your (that is, the caller's) responsibility to ensure that the underlying representation for both types is the same.

There are few situations where it is acceptable to use this function, it should only ever appear as an internal implementation detail of a library, never as a function used in a "normal" codebase.

Installation

spago install unsafe-coerce

Documentation

Module documentation is published on Pursuit.

About

Unsafe coercion of values

Resources

Stars

9 stars

Watchers

3 watching

Forks

Releases

Used by

Contributors

Languages