Implementation of the Black-Scholes-Merton model for pricing European options in Haskell.
ghci
:l BlackScholes.hs
blackScholes Option { optionType="call", stock=31.25, strike=22.75, riskFree=0.01, time=1, vol=0.5 }
blackScholes Option { optionType="put", stock=31.25, strike=35.00, riskFree=0.01, time=1, vol=0.5 }
####To run tests: cabal install HSpec runhaskell Tests.hs