diff --git a/byg/src/DependencyGenerator.hs b/byg/src/DependencyGenerator.hs index 4950cd2..cecbe17 100644 --- a/byg/src/DependencyGenerator.hs +++ b/byg/src/DependencyGenerator.hs @@ -279,4 +279,6 @@ hasExtension exts filename = do ext `elemOf` exts copyTo :: (TokenableTo FilePath a, TokenableTo FilePath b) => a -> b -> DepGenM () -copyTo path targetDir = copyFile path (joinPaths targetDir path) +copyTo path targetDir = do + pathToken <- toToken path + copyFile pathToken (joinPaths targetDir pathToken)