Haskell library with extra operations on binary words