@hackage fusion-plugin-types0.1.0
Types for the fusion-plugin package.
Categories
License
BSD-3-Clause
Maintainer
pranaysashank@composewell.com
Links
Versions
- 0.1.0 Mon, 17 Feb 2020
Installation
Tested Compilers
Dependencies (1)
Dependents (4)
@hackage/streamly, @hackage/fusion-plugin, @hackage/streamly-core, @hackage/streamly-lz4
fusion-plugin-types
Motivation
This package provides types needed to run the fusion-plugin
plugin. This package is separated from the
fusion-plugin package
so that library authors can annotate the types that fusion-plugin
should try to fuse but avoid the ghc dependency in the library
itself.
Using the package
To enable support for using the fusion-plugin plugin, add this
package to your build-depends and annotate your types with Fuse
type from Fusion.Plugin.Types module.
import Fusion.Plugin.Types (Fuse (..))
{-# ANN type Step Fuse #-}
data Step s a = Yield a s | Skip s | Stop