Toy software defined radio library in Haskell