deanie

An embedded probabilistic programming language.
git clone git://git.jtobin.io/deanie.git
Log | Files | Refs | README | LICENSE

Extended.hs (216B)


      1 
      2 module Control.Applicative.Extended (
      3     replicateA
      4 
      5   , module Control.Applicative
      6   ) where
      7 
      8 import Control.Applicative
      9 
     10 replicateA :: Applicative f => Int -> f a -> f [a]
     11 replicateA n = sequenceA . replicate n
     12