Guest User

Untitled

a guest
Oct 19th, 2017
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. :t v
  2. print v
  3. :t takeFileName
  4. takeFileName v
  5.  
  6. v :: FilePath
  7.  
  8. FilePath "/media/miguel/backup/backups"
  9.  
  10. takeFileName :: FilePath -> FilePath
  11. Couldn't match type ‘Turtle.FilePath’ with ‘String’
  12. Expected type: IHaskellSysIO.FilePath
  13. Actual type: Turtle.FilePath
  14. In the first argument of ‘takeFileName’, namely ‘v’
  15. In the expression: takeFileName v
  16.  
  17. import Filesystem.Path.CurrentOS (encodeString)
  18. encodeString valueGoesHere
Add Comment
Please, Sign In to add comment