mcsp-algorithms-0.1.0: Algorithms for Minimum Common String Partition (MCSP) in Haskell.
Safe HaskellSafe-Inferred
LanguageGHC2021

MCSP.Data.String.TH

Description

Simplified derivingUnbox.

Synopsis

Documentation

type EnumLike a = (Enum a, Bounded a, Typeable a) Source #

Types convertible to a bounded integer.

derivingUnboxVia :: TypeQ -> DecsQ Source #

Given T -> U, derives Unbox T by casting it to U.

>>> import Data.Word (Word8)
>>> data DNA = A | C | G | T
>>> -- derivingUnboxVia [t|DNA -> Word8|]