https://github.com/Helium4Haskell/lvm
Raw File
Tip revision: 7a44a05b695602cb141014fc38e076752711dc59 authored by Ivo Gabe de Wolff on 04 February 2020, 16:32:17 UTC
Fix pretty printing of 'export' and 'from'
Tip revision: 7a44a05
compare.hs
module Main where

import Char   (isSpace)
import System (exitWith,getArgs,ExitCode(..))

main  
  = do{ [fname1,fname2] <- getArgs
      ; xs <- readFile fname1
      ; ys <- readFile fname2
      ; if (clean xs /= clean ys)
         then do{ putStrLn "different files"
                ; exitWith (ExitFailure 1)
                }
         else return ()
      }
  where
    clean xs  = filter (not . isSpace) xs
   
back to top