使用 takeFileName 时出现类型错误:
: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
是不是因为turtle 的 FilePath 和 prelude 的 FilePath 不一样?