Skip to content

Commit

Permalink
Issue #26: replace with a better suited file function
Browse files Browse the repository at this point in the history
  • Loading branch information
Marko Dimjašević committed Nov 21, 2019
1 parent ad740e7 commit aa3188e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/Fencer/Rules/Test.hs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import qualified Data.Yaml as Yaml
import Named ((:!), arg)
import NeatInterpolation (text)
import qualified System.IO.Temp as Temp
import System.FilePath (splitFileName, (</>))
import System.FilePath (takeDirectory, (</>))
import qualified System.Directory as Dir
import Test.Tasty (TestTree, testGroup)
import Test.Tasty.HUnit (assertBool, assertEqual, Assertion, testCase)
Expand Down Expand Up @@ -58,7 +58,7 @@ writeFile
(arg #modifyPerms -> modifyPerms) = do

let
(dir, _) = splitFileName path
dir = takeDirectory path
fullPath = root </> path
Dir.createDirectoryIfMissing True (root </> dir)
TIO.writeFile fullPath content
Expand Down

0 comments on commit aa3188e

Please sign in to comment.