diff options
| author | picca <picca@web> | 2015-09-30 10:05:08 +0000 |
|---|---|---|
| committer | admin <admin@branchable.com> | 2015-09-30 10:05:08 +0000 |
| commit | 64ee2da2c5838a455a3145810efcb8272d612f77 (patch) | |
| tree | a4e2394131e538dd95431ae0559ee078df25ed3c /doc/forum/chroot_for_sbuild | |
| parent | 9204b7117c27b0608bdc990d982806814e9be2b4 (diff) | |
Added a comment
Diffstat (limited to 'doc/forum/chroot_for_sbuild')
| -rw-r--r-- | doc/forum/chroot_for_sbuild/comment_3_bb01c327417848165197405f5f918caf._comment | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/doc/forum/chroot_for_sbuild/comment_3_bb01c327417848165197405f5f918caf._comment b/doc/forum/chroot_for_sbuild/comment_3_bb01c327417848165197405f5f918caf._comment new file mode 100644 index 00000000..1ce48047 --- /dev/null +++ b/doc/forum/chroot_for_sbuild/comment_3_bb01c327417848165197405f5f918caf._comment @@ -0,0 +1,34 @@ +[[!comment format=mdwn + username="picca" + subject="comment 3" + date="2015-09-30T10:05:08Z" + content=""" +Thanks for the information, + +Now I use the provision part but I am facing a problem when I try to create the chroot using withTmpDir +I do not understand exactly how it must work + +here the signature of my two methods + + sbuild :: System -> RevertableProperty + sbuild system = withTmpDir \"sbuild\" $ \tmpdir -> sbuild' system tmpdir + +And here the property which does the work (it works thanks to your comment, I will have other questions about this part later ;) + + sbuild' :: System -> FilePath -> RevertableProperty + sbuild' system chrootdir = mksbuild `requires` create + ... + +When I tried this I got this error + + src/config.hs:166:17: + Couldn't match expected type `RevertableProperty' + with actual type `m0 RevertableProperty' + In the expression: + withTmpDir \"sbuild\" $ \ tmpdir -> return $ sbuild' system tmpdir + In an equation for `sbuild': + sbuild system + = withTmpDir \"sbuild\" $ \ tmpdir -> return $ sbuild' system tmpdir + +I need to extract the property from the monad, but I do not know how ? +"""]] |
