When using takeFileName I get a type error:
:t v
print v
:t takeFileName
takeFileName v
v :: FilePath
FilePath "/media/miguel/backup/backups"
takeFileName :: FilePath -> FilePath
Couldn't match type ‘Turtle.FilePath’ with ‘String’
Expected type: IHaskellSysIO.FilePath
Actual type: Turtle.FilePath
In the first argument of ‘takeFileName’, namely ‘v’
In the expression: takeFileName v
Is it because turtle's FilePath is different from prelude's FilePath ?