reactive-fieldtrip 0.0.3 → 0.0.4
raw patch · 4 files changed
+41/−10 lines, 4 files
Files
- reactive-fieldtrip.cabal +2/−4
- src/FRP/Reactive/FieldTrip.hs +32/−0
- src/Test.hs +2/−2
- wikipage.tw +5/−4
reactive-fieldtrip.cabal view
@@ -1,5 +1,5 @@ Name: reactive-fieldtrip-Version: 0.0.3+Version: 0.0.4 Cabal-Version: >= 1.2 Synopsis: Connect Reactive and FieldTrip Category: Graphics, FRP@@ -10,9 +10,6 @@ . Project wiki page: <http://haskell.org/haskellwiki/reactive-fieldtrip> .- The module documentation pages have links to colorized source code and- to wiki pages where you can read and contribute user comments. Enjoy!- . © 2008 by Conal Elliott; BSD3 license. Author: Conal Elliott Maintainer: conal@conal.net@@ -28,6 +25,7 @@ Extensions: Build-Depends: base, reactive >= 0.8.7, reactive-glut >= 0.0.4, FieldTrip >= 0.2.1, vector-space Exposed-Modules: + FRP.Reactive.FieldTrip FRP.Reactive.FieldTrip.Adapter Other-Modules: Test
+ src/FRP/Reactive/FieldTrip.hs view
@@ -0,0 +1,32 @@+{-# LANGUAGE TypeSynonymInstances, MultiParamTypeClasses #-}+{-# OPTIONS_GHC -Wall -fno-warn-orphans #-}+----------------------------------------------------------------------+-- |+-- Module : FRP.Reactive.FieldTrip+-- Copyright : (c) Conal Elliott 2008+-- License : BSD3+-- +-- Maintainer : conal@conal.net+-- Stability : experimental+-- +-- Connect the ''reactive'' and ''FieldTrip'' libraries+----------------------------------------------------------------------++module FRP.Reactive.FieldTrip+ ( module FRP.Reactive.FieldTrip.Adapter+ ) where+++import Control.Applicative (liftA2)++import FRP.Reactive (Behavior)+import Graphics.FieldTrip (Transform(..))++import FRP.Reactive.FieldTrip.Adapter+++instance Transform xf a => Transform (Behavior xf) (Behavior a) where+ (*%) = liftA2 (*%)++-- TODO: add dynamic versions of lots of FieldTrip vocabulary, in a+-- collection of modules paralleling FieldTrip's.
src/Test.hs view
@@ -23,7 +23,7 @@ import Graphics.FieldTrip -import FRP.Reactive.FieldTrip.Adapter+import FRP.Reactive.FieldTrip main :: IO ()@@ -94,7 +94,7 @@ drops e = monoidB (g <$> withTimeE_ e) where g0 = uscale3 (0.3 :: R) *% torusPair- g t0 = liftA2 (*%) (f <$> time) (pure g0)+ g t0 = (f <$> time) *% pure g0 where f t = translate3 (Vector3 (t-t0) 0 (-5))
wikipage.tw view
@@ -1,15 +1,16 @@ [[Category:Packages]] [[Category:FRP]] [[Category:Graphics]]+[[Category:3D]] == Abstract == '''reactive-fieldtrip''' connects the [[Reactive]] (FRP) and [[FieldTrip]] (functional 3D) libraries, for functionally programming reactive, animated, 3D graphics. Besides this wiki page, here are more ways to find out about reactive-fieldtrip:-* Read [http://code.haskell.org/reactive-fieldtrip/doc/html/ the library documentation].-* Get the code repository: '''<tt>darcs get http://code.haskell.org/reactive-fieldtrip</tt>'''.-* Install from [http://hackage.haskell.org/cgi-bin/hackage-scripts/package/reactive-fieldtrip Hackage].-* See the [[reactive-fieldtrip/Versions| version history]].+* Visit the [http://hackage.haskell.org/cgi-bin/hackage-scripts/package/reactive-fieldtrip Hackage page] for library documentation and to download & install.+* Or install with <tt>cabal install reactive-fieldtrip</tt>.+* Get the code repository: <tt>darcs get http://code.haskell.org/reactive-fieldtrip</tt>.+<!-- * See the [[reactive-fieldtrip/Versions| version history]]. --> Please leave comments at the [[Talk:reactive-fieldtrip|Talk page]].