Advertisement
Guest User

Untitled

a guest
Jul 31st, 2019
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. name:          rotatePlugin
  2. category:      Language
  3. version:       0
  4. license:       BSD2
  5. cabal-version: 2.0
  6. author:        Fog
  7. maintainer:    Fog
  8. stability:     experimental
  9. build-type:    Simple
  10. synopsis:      eg of how to use backpack to provide a "plugin"
  11. description:   extends the rotate signature to include vector multiplication by a scalar.
  12.  
  13. library
  14.   default-language: Haskell2010
  15.   ghc-options: -Wall -O2
  16.   hs-source-dirs: src
  17.   signatures: RotatePlugin
  18.   exposed-modules: TestRotatePlugin
  19.   build-depends: base, rotate
  20.  
  21. library example
  22.   default-language: Haskell2010
  23.   hs-source-dirs: example
  24.   exposed-modules: LinearRotatePlugin, VectRotatePlugin
  25.   build-depends: base, linear, vect, rotate
  26.  
  27. executable rotatePlugin-example
  28.   default-language: Haskell2010
  29.   main-is: example/Main.hs
  30.   build-depends: base, rotate,rotatePlugin, example,rotate:example
  31.   mixins: rotate       (TestRotate       as Linear.TestRotate)
  32.           requires     (Rotate           as LinearRotate)
  33.   mixins: rotatePlugin (TestRotatePlugin as Linear.TestRotatePlugin)
  34.           requires     (RotatePlugin     as LinearRotatePlugin)
  35.   mixins: rotate       (TestRotate       as Vect.TestRotate  )
  36.           requires     (Rotate           as VectRotate  )
  37.   mixins: rotatePlugin (TestRotatePlugin as Vect.TestRotatePlugin  )
  38.           requires     (RotatePlugin     as VectRotatePlugin  )
  39.  
  40.  
  41. {-
  42. Error:
  43.     Non-library component has unfilled requirements:
  44.         LinearRotate
  45.         Rotate
  46.         VectRotate
  47.     In the stanza executable rotatePlugin-example
  48. -}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement