File type identification in Haskell.