Guest User

Untitled

a guest
Oct 19th, 2018
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. {-# LANGUAGE UnicodeSyntax #-}
  2. import Control.Applicative ((<$>))
  3.  
  4. import Inversions
  5.  
  6. inputFile ∷ FilePath
  7. inputFile = "IntegerArray.txt"
  8.  
  9. main ∷ IO ()
  10. main = print =<< inversions <$> map (read ∷ String → Int) <$> lines <$> readFile inputFile
Add Comment
Please, Sign In to add comment