Skip to content

Instantly share code, notes, and snippets.

@pchiusano
Created June 21, 2013 19:38
Show Gist options
  • Save pchiusano/5833762 to your computer and use it in GitHub Desktop.
Save pchiusano/5833762 to your computer and use it in GitHub Desktop.
-- Some edits to the F type
data F :: Timing -> * -> * where
...
{- For each unique `a` value taken on by the first series, call the
given function, passing it the `a` wrapped in an `F`, and the
subset of issues for each date that have that `a`.
sector :: F (P Day) String
-- could very well do something using the k
By sector (k issues -> Sum issues) (marketCap sp500)
-}
By :: F t a -> (forall s . F s a -> F s b -> F s c) -> F t b -> F t c
-- Another thing we probably need - filtering
-- Where the first series is > 0, include values from the second series
-- returns variant data
Mask :: Num n => F (P t) n -> F (P t) a -> F V a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment