ghorn / dynobud

your dynamic optimization buddy
GNU Lesser General Public License v3.0
27 stars 5 forks source link

haskell verison of IOSchemes #40

Closed ghorn closed 9 years ago

ghorn commented 10 years ago

This :*: stuff in Dyno.View.Fun is too difficult to work with. Instead it should be something like

data MyInputs a = MyInputs (J X a) (J U a) deriving Generic
data MyInputs a = MyOutputs (J X a) (J Z a) deriving Generic
instance (Symbolic a) => IOScheme (MyInput a)
instance (Symbolic a) => IOScheme (MyOutput a)

myFun :: Fun MyInputs MyOutputs a

ghorn commented 9 years ago

Dyno.View.Scheme implements this