Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- name: rotatePlugin
- category: Language
- version: 0
- license: BSD2
- cabal-version: 2.0
- author: Fog
- maintainer: Fog
- stability: experimental
- build-type: Simple
- synopsis: eg of how to use backpack to provide a "plugin"
- description: extends the rotate signature to include vector multiplication by a scalar.
- library
- default-language: Haskell2010
- ghc-options: -Wall -O2
- hs-source-dirs: src
- signatures: RotatePlugin
- exposed-modules: TestRotatePlugin
- build-depends: base, rotate
- library example
- default-language: Haskell2010
- hs-source-dirs: example
- exposed-modules: LinearRotatePlugin, VectRotatePlugin
- build-depends: base, linear, vect, rotate
- executable rotatePlugin-example
- default-language: Haskell2010
- main-is: example/Main.hs
- build-depends: base, rotate,rotatePlugin, example,rotate:example
- mixins: rotate (TestRotate as Linear.TestRotate)
- requires (Rotate as LinearRotate)
- mixins: rotatePlugin (TestRotatePlugin as Linear.TestRotatePlugin)
- requires (RotatePlugin as LinearRotatePlugin)
- mixins: rotate (TestRotate as Vect.TestRotate )
- requires (Rotate as VectRotate )
- mixins: rotatePlugin (TestRotatePlugin as Vect.TestRotatePlugin )
- requires (RotatePlugin as VectRotatePlugin )
- {-
- Error:
- Non-library component has unfilled requirements:
- LinearRotate
- Rotate
- VectRotate
- In the stanza executable rotatePlugin-example
- -}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement