) where
-- Standard Modules
-import qualified Directory
+import qualified System.Directory as Directory
import qualified Maybe
import qualified Monad
import qualified System.FilePath as FilePath
prepareDir :: String -> IO()
prepareDir dir = do
-- Create the dir if needed
- exists <- Directory.doesDirectoryExist dir
- Monad.unless exists $ Directory.createDirectory dir
+ Directory.createDirectoryIfMissing True dir
-- Find all .vhdl files in the directory
files <- Directory.getDirectoryContents dir
let to_remove = filter ((==".vhdl") . FilePath.takeExtension) files
build-depends: ghc >= 6.11, pretty, vhdl > 0.1, haskell98, syb,
data-accessor, containers, base >= 4, transformers,
filepath, template-haskell, data-accessor-template,
- prettyclass
+ prettyclass, directory
exposed-modules: CLasH.Translator
CLasH.Translator.Annotations