mirror of
https://github.com/Avi-D-coder/implicit-hie.git
synced 2024-11-26 11:25:24 +03:00
18 lines
386 B
Haskell
18 lines
386 B
Haskell
module Main where
|
|
|
|
import Data.Attoparsec.Text
|
|
import qualified Data.Text.IO as T
|
|
import Hie.Cabal.Parser
|
|
import Hie.Yaml
|
|
import System.Environment
|
|
|
|
main :: IO ()
|
|
main = do
|
|
args <- getArgs
|
|
file <- T.readFile $ head args
|
|
case parseOnly parseSec file of
|
|
Right r -> do
|
|
T.putStr $ cabalHieYaml r
|
|
T.putStr $ stackHieYaml r
|
|
_ -> error "Could not parse *.cabal file"
|