I wrote some math formulas in Haskell and was wondering about how to clean the code up and make it more readable.
import Math.Gamma
pdf :: Double -> Double -> Double -> Double -> Double
pdf mu alpha beta x =
( beta / (2 * alpha * gamma ( 1/beta) ) ) **
exp ( -1* ( abs(x - mu )/alpha )) ** beta
cdf :: Double -> Double -> Double -> Double -> Double
cdf mu alpha beta x = 0.5 + signum(x - mu) * ( lowerGamma (1/beta) ((abs(x-mu) / alpha)**beta) / (2 * gamma(1/beta)))
main = do
let x = pdf 0 1 2 0.5
print x
let y = cdf 0 1 2 0.5
print y