Skip to content

Instantly share code, notes, and snippets.

@Kiwi Kiwi/program-cabal.hs Secret
Last active Feb 14, 2020

Embed
What would you like to do?
program-cabal.hs and program.hs turtle example
06:23:31 [kiwi@mvp-nixos turtle-example]$ ./program-cabal.hs
these derivations will be built:
/nix/store/c8pjxs7ykd2qdzhzzv1la6j042d2rbb1-ghc-8.6.5-with-packages.drv
these paths will be fetched (142.57 MiB download, 1737.41 MiB unpacked):
/nix/store/0f9sikmp8v9f1pj53xppbzc0l10xzib9-tagged-0.8.6
/nix/store/0gb88sy092nfsjxii27jjmh33ncd0bif-transformers-compat-0.6.5-doc
/nix/store/0s4i7ppmmsjnvv59242hxp7lh9ikhgxq-ansi-terminal-0.9.1
/nix/store/1iw901rhs74zsbj36cnm690xs7ma6fg8-optional-args-1.0.2-doc
/nix/store/1j5n19lqm5gkh664l5a7zpwkyvwpzw85-comonad-5.0.6
/nix/store/1n8qmf05b8amp8zg30wpbz4qdi54l6jr-shelly-1.8.1
/nix/store/26rs35qb05ahmzc07wcpbfrl44ncg71h-optparse-applicative-0.14.3.0-doc
/nix/store/2mw0hdljrhrvvb3zby7vrw1xixl5lxmm-streaming-commons-0.2.1.1-doc
/nix/store/32dxjr64kfl5gz4sik5hipqdxdhrp1v3-system-fileio-0.3.16.4
/nix/store/4dl5nsigabvnl9qjf80vskj3ixzjil22-vector-builder-0.3.8
/nix/store/543cxa6hprkplbbla0ylxjczsnqrw8xl-semigroups-0.18.5-doc
/nix/store/545rnrnhqrplxckazhrfl022xlbjf8yr-streaming-commons-0.2.1.1
/nix/store/6mchfzk38xpyf22052npr4rjbhgmw8ni-primitive-0.6.4.0-doc
/nix/store/7abin48xdjdv0lpqcm2pkg1vhcmf7ivw-unix-compat-0.5.2
/nix/store/7dy6cj5canbiajd787jxxd2wq6hhnqr8-th-abstraction-0.3.1.0-doc
/nix/store/7pmffal2n2hbc032q9cbxba0yfkxpnyl-vector-th-unbox-0.2.1.7-doc
/nix/store/7rirnns8ar7zjb49xjqfjmlvfmqy5p23-foldl-1.4.5
/nix/store/870zg5b5hlasmix084w7h288fqpqnfdc-unordered-containers-0.2.10.0
/nix/store/8gany62hsh3vdjllyr78camfwgwbap31-managed-1.0.6-doc
/nix/store/8pm22lrmyqjs6fkmzp8zl3r60c2lxi8a-data-default-class-0.1.2.0
/nix/store/93j97pi456qng01g0shap0cphbyhy490-semigroups-0.18.5
/nix/store/96g58a5zdkwynxs6s0k2cszb0nzfy0zw-transformers-base-0.4.5.2
/nix/store/9gbn0vvbln9rvrxf0m8a284jizxhab9k-zlib-0.6.2.1
/nix/store/9kk7lds4byyxyhnkbxq3i9m8hyh82xss-constraints-0.10.1
/nix/store/9ryifyd3cqqlanvw4paflf9lnq9cakl8-turtle-1.5.15
/nix/store/asx3pgmpasqdb173lma7zbwyan7lx0wj-StateVar-1.2-doc
/nix/store/b3ja606prxyj5ln2xfxwlr19f8jlkzkp-math-functions-0.3.3.0
/nix/store/biiyfhdwgcmaww86604v2g8ggvbrzy9n-hashable-1.2.7.0
/nix/store/bqpvz4wrb3cd06l90klc3ym0vprpaazf-math-functions-0.3.3.0-doc
/nix/store/c6s5xcw3ynzv6cccclbkz0l51gbz4r0x-async-2.2.2
/nix/store/cxlfyz4zfd5zsl0xnw3ncr4w8bgak9pw-profunctors-5.3
/nix/store/daqa4zn5fsdjpn3dzb8i2hqry56im2bb-lifted-async-0.10.0.4-doc
/nix/store/dbb0dmms7lvhwl68cnbh4dbnc7s0pwh5-monad-control-1.0.2.3
/nix/store/dkv3lknlpyp6l26vs1kx1cwyj4szpbfk-unordered-containers-0.2.10.0-doc
/nix/store/dkvyqdfmbhiqyx4v7ryvv2vqbgz6bnxz-lifted-base-0.2.3.12
/nix/store/dzrhva3289z3xvspz7g5gxgnyd5ppz3k-system-filepath-0.4.14-doc
/nix/store/f0jshaml896qjm5bbc86ds21j9brxvdn-distributive-0.6.1-doc
/nix/store/fg7mibq3bzzwlgj4iz06p4lsf7sh5iix-lifted-base-0.2.3.12-doc
/nix/store/fl3xqrvkdb3kks55v0m925azrxj21dg7-managed-1.0.6
/nix/store/fyp3wza0fhw2dwz9r1na10yi4n61w33y-vector-0.12.0.3
/nix/store/gfjql3ga2da91d6543jmjbgjs12g841z-optional-args-1.0.2
/nix/store/gjjmlpfhcm0925g6k7dnfj4jb79rg6qh-turtle-1.5.15-doc
/nix/store/gpmzxa27cq4lvx38pwlxznv329qp6f58-transformers-compat-0.6.5
/nix/store/h2rx35vh4rqflgifggprhjyk8dw8wphv-semigroupoids-5.3.4
/nix/store/hmz1w9j612wlscv3dbdjrcfdqxzlm93y-StateVar-1.2
/nix/store/hy7w71fy1xlny6023a8y6mjx6qwpvy8h-constraints-0.10.1-doc
/nix/store/i3jb8y54zx84wgj2z7f8jdapm5x9hp7j-temporary-1.3-doc
/nix/store/if6iq54ab6ikcp6ygc2i478zz7l4lmdr-network-2.8.0.1
/nix/store/ipn4n37fadri5c4gk5r1c5mag4ql3kb1-primitive-0.6.4.0
/nix/store/ixx5p9qmf21xdgj2h08l7bnvsy80lr5m-contravariant-1.5.2-doc
/nix/store/jj773sd36k0q33jpmym2grlpmj4hm1yr-zlib-0.6.2.1-doc
/nix/store/k3a8iibylaxzysksk2bz4frwwv5pr9vr-monad-control-1.0.2.3-doc
/nix/store/k9q3wggd0i9p06yd25g4fcq9fwmpi4cx-bifunctors-5.5.6
/nix/store/kk8sz851fqmiym2imi8z20p7hndz4n0i-unix-compat-0.5.2-doc
/nix/store/klgxgj54sdgjxhnir7ps9grbbj6z8xag-system-fileio-0.3.16.4-doc
/nix/store/kxa0sp214dvvz99xl7vc0smbxriajbbn-profunctors-5.3-doc
/nix/store/l4ff0c95df228g8ggm7lz3h1n9xsy7rn-cabal-install-3.0.0.0
/nix/store/lbkjabkih38d809cg427svsqsy5kcx1i-system-filepath-0.4.14
/nix/store/ldgbnzygvzdmv94h39ks6p26c1fga8xw-enclosed-exceptions-1.0.3
/nix/store/llli2dswd6jhgp0j96x1phwg689cwxm7-lifted-async-0.10.0.4
/nix/store/lyzzhb7vmi1if4zmakj69gxi8ws82xxj-tagged-0.8.6-doc
/nix/store/m7lwzj422sp9qz6sb4pjkpvm76f17p6j-vector-builder-0.3.8-doc
/nix/store/pgxzns7f59xvjr5prkalkdms50z8fhzh-base-orphans-0.8.1
/nix/store/phk3a6z09hbzzfqfcwwxvmq5wa1mdb7v-hostname-1.0-doc
/nix/store/qdzgcfzicp4xrhkayjxz4g0f3kqsxcnr-enclosed-exceptions-1.0.3-doc
/nix/store/qk9g8cy3v7wamqlf1wl4577aaq4m45c5-temporary-1.3
/nix/store/r18i427zbwz70z500vqgj72capmvpv31-mwc-random-0.14.0.0
/nix/store/r1clb9n99rmgdkqsf0964bml2bbbb8vc-contravariant-1.5.2
/nix/store/rlgs8lrd9h08qd74l54nrcfp0d41y9aw-hostname-1.0
/nix/store/s3g8553xc83fq3sm6lpg5h7cjdjrxsqd-foldl-1.4.5-doc
/nix/store/s9v3wd0xmlgaj9ihnmxf38xgcyc47xq5-semigroupoids-5.3.4-doc
/nix/store/sl4ir8zvpfsfr9bdy696l6qdjv5zfz0n-clock-0.8
/nix/store/slsl7a0x1jqnq6vb9akr9xlgnh0v76dk-mwc-random-0.14.0.0-doc
/nix/store/v1r9b6bp4m1rfiiqydrcvfz4531vhcmv-bifunctors-5.5.6-doc
/nix/store/v4i8sqms64338n10j11cc57kfprnfg0k-optparse-applicative-0.14.3.0
/nix/store/v610z2qblhl3q7l22mabfr05bsz7yfa5-comonad-5.0.6-doc
/nix/store/vrvaw8iikvaibyfzhm85ckx3ycva0794-th-abstraction-0.3.1.0
/nix/store/vz3a99n7ms57mqf0ihh9rd76bl5v5yjw-transformers-base-0.4.5.2-doc
/nix/store/w0svccn89i3c43vpl4wnp3wahd9adw7p-random-1.1
/nix/store/w5hj7j12m2vyjg0lqaqzlvwgwws4lkgb-distributive-0.6.1
/nix/store/wimkww033kyfhs5r69lqf5dksinwz675-vector-0.12.0.3-doc
/nix/store/wk75d0rrgzp14z0rpf3sf8pvzvdbyav6-base-prelude-1.3-doc
/nix/store/wvrqwsk7g405z2xr3v8dk2zakfrpi4y1-vector-th-unbox-0.2.1.7
/nix/store/x3r7qk82zcg5ggn6m3gzkp14kxsjwcl0-exceptions-0.10.3
/nix/store/xbkv6dj4x7d8iq418n07dhzdv8n4mpcz-base-prelude-1.3
/nix/store/xzl45brcjzzq2nc4vpk77j2dlgqx74ab-ghc-8.6.5
/nix/store/ymy70b8ccy9lhaxkrjghx4f8fd3dc2bd-ansi-wl-pprint-0.6.9
/nix/store/z028mj2cskpgcq7lsdkffikhgvxy2gd5-shelly-1.8.1-doc
/nix/store/zaz5ibllz4vg52kqbn7i5ckvxjdj0hlh-colour-2.3.5
/nix/store/zvqmv8wq898861dr6ck0c9857gl4mxpc-random-1.1-doc
copying path '/nix/store/l4ff0c95df228g8ggm7lz3h1n9xsy7rn-cabal-install-3.0.0.0' from 'https://cache.nixos.org'...
copying path '/nix/store/asx3pgmpasqdb173lma7zbwyan7lx0wj-StateVar-1.2-doc' from 'https://cache.nixos.org'...
copying path '/nix/store/hy7w71fy1xlny6023a8y6mjx6qwpvy8h-constraints-0.10.1-doc' from 'https://cache.nixos.org'...
copying path '/nix/store/wk75d0rrgzp14z0rpf3sf8pvzvdbyav6-base-prelude-1.3-doc' from 'https://cache.nixos.org'...
copying path '/nix/store/xzl45brcjzzq2nc4vpk77j2dlgqx74ab-ghc-8.6.5' from 'https://cache.nixos.org'...
copying path '/nix/store/1iw901rhs74zsbj36cnm690xs7ma6fg8-optional-args-1.0.2-doc' from 'https://cache.nixos.org'...
copying path '/nix/store/8gany62hsh3vdjllyr78camfwgwbap31-managed-1.0.6-doc' from 'https://cache.nixos.org'...
copying path '/nix/store/phk3a6z09hbzzfqfcwwxvmq5wa1mdb7v-hostname-1.0-doc' from 'https://cache.nixos.org'...
copying path '/nix/store/26rs35qb05ahmzc07wcpbfrl44ncg71h-optparse-applicative-0.14.3.0-doc' from 'https://cache.nixos.org'...
copying path '/nix/store/ixx5p9qmf21xdgj2h08l7bnvsy80lr5m-contravariant-1.5.2-doc' from 'https://cache.nixos.org'...
copying path '/nix/store/6mchfzk38xpyf22052npr4rjbhgmw8ni-primitive-0.6.4.0-doc' from 'https://cache.nixos.org'...
copying path '/nix/store/zvqmv8wq898861dr6ck0c9857gl4mxpc-random-1.1-doc' from 'https://cache.nixos.org'...
copying path '/nix/store/543cxa6hprkplbbla0ylxjczsnqrw8xl-semigroups-0.18.5-doc' from 'https://cache.nixos.org'...
copying path '/nix/store/dzrhva3289z3xvspz7g5gxgnyd5ppz3k-system-filepath-0.4.14-doc' from 'https://cache.nixos.org'...
copying path '/nix/store/lyzzhb7vmi1if4zmakj69gxi8ws82xxj-tagged-0.8.6-doc' from 'https://cache.nixos.org'...
copying path '/nix/store/i3jb8y54zx84wgj2z7f8jdapm5x9hp7j-temporary-1.3-doc' from 'https://cache.nixos.org'...
copying path '/nix/store/7dy6cj5canbiajd787jxxd2wq6hhnqr8-th-abstraction-0.3.1.0-doc' from 'https://cache.nixos.org'...
copying path '/nix/store/vz3a99n7ms57mqf0ihh9rd76bl5v5yjw-transformers-base-0.4.5.2-doc' from 'https://cache.nixos.org'...
copying path '/nix/store/f0jshaml896qjm5bbc86ds21j9brxvdn-distributive-0.6.1-doc' from 'https://cache.nixos.org'...
copying path '/nix/store/klgxgj54sdgjxhnir7ps9grbbj6z8xag-system-fileio-0.3.16.4-doc' from 'https://cache.nixos.org'...
copying path '/nix/store/0gb88sy092nfsjxii27jjmh33ncd0bif-transformers-compat-0.6.5-doc' from 'https://cache.nixos.org'...
copying path '/nix/store/kk8sz851fqmiym2imi8z20p7hndz4n0i-unix-compat-0.5.2-doc' from 'https://cache.nixos.org'...
copying path '/nix/store/dkv3lknlpyp6l26vs1kx1cwyj4szpbfk-unordered-containers-0.2.10.0-doc' from 'https://cache.nixos.org'...
copying path '/nix/store/wimkww033kyfhs5r69lqf5dksinwz675-vector-0.12.0.3-doc' from 'https://cache.nixos.org'...
copying path '/nix/store/v610z2qblhl3q7l22mabfr05bsz7yfa5-comonad-5.0.6-doc' from 'https://cache.nixos.org'...
copying path '/nix/store/k3a8iibylaxzysksk2bz4frwwv5pr9vr-monad-control-1.0.2.3-doc' from 'https://cache.nixos.org'...
copying path '/nix/store/jj773sd36k0q33jpmym2grlpmj4hm1yr-zlib-0.6.2.1-doc' from 'https://cache.nixos.org'...
copying path '/nix/store/v1r9b6bp4m1rfiiqydrcvfz4531vhcmv-bifunctors-5.5.6-doc' from 'https://cache.nixos.org'...
copying path '/nix/store/fg7mibq3bzzwlgj4iz06p4lsf7sh5iix-lifted-base-0.2.3.12-doc' from 'https://cache.nixos.org'...
copying path '/nix/store/2mw0hdljrhrvvb3zby7vrw1xixl5lxmm-streaming-commons-0.2.1.1-doc' from 'https://cache.nixos.org'...
copying path '/nix/store/qdzgcfzicp4xrhkayjxz4g0f3kqsxcnr-enclosed-exceptions-1.0.3-doc' from 'https://cache.nixos.org'...
copying path '/nix/store/daqa4zn5fsdjpn3dzb8i2hqry56im2bb-lifted-async-0.10.0.4-doc' from 'https://cache.nixos.org'...
copying path '/nix/store/kxa0sp214dvvz99xl7vc0smbxriajbbn-profunctors-5.3-doc' from 'https://cache.nixos.org'...
copying path '/nix/store/s9v3wd0xmlgaj9ihnmxf38xgcyc47xq5-semigroupoids-5.3.4-doc' from 'https://cache.nixos.org'...
copying path '/nix/store/m7lwzj422sp9qz6sb4pjkpvm76f17p6j-vector-builder-0.3.8-doc' from 'https://cache.nixos.org'...
copying path '/nix/store/7pmffal2n2hbc032q9cbxba0yfkxpnyl-vector-th-unbox-0.2.1.7-doc' from 'https://cache.nixos.org'...
copying path '/nix/store/z028mj2cskpgcq7lsdkffikhgvxy2gd5-shelly-1.8.1-doc' from 'https://cache.nixos.org'...
copying path '/nix/store/bqpvz4wrb3cd06l90klc3ym0vprpaazf-math-functions-0.3.3.0-doc' from 'https://cache.nixos.org'...
copying path '/nix/store/slsl7a0x1jqnq6vb9akr9xlgnh0v76dk-mwc-random-0.14.0.0-doc' from 'https://cache.nixos.org'...
copying path '/nix/store/s3g8553xc83fq3sm6lpg5h7cjdjrxsqd-foldl-1.4.5-doc' from 'https://cache.nixos.org'...
copying path '/nix/store/gjjmlpfhcm0925g6k7dnfj4jb79rg6qh-turtle-1.5.15-doc' from 'https://cache.nixos.org'...
copying path '/nix/store/hmz1w9j612wlscv3dbdjrcfdqxzlm93y-StateVar-1.2' from 'https://cache.nixos.org'...
copying path '/nix/store/pgxzns7f59xvjr5prkalkdms50z8fhzh-base-orphans-0.8.1' from 'https://cache.nixos.org'...
copying path '/nix/store/xbkv6dj4x7d8iq418n07dhzdv8n4mpcz-base-prelude-1.3' from 'https://cache.nixos.org'...
copying path '/nix/store/sl4ir8zvpfsfr9bdy696l6qdjv5zfz0n-clock-0.8' from 'https://cache.nixos.org'...
copying path '/nix/store/zaz5ibllz4vg52kqbn7i5ckvxjdj0hlh-colour-2.3.5' from 'https://cache.nixos.org'...
copying path '/nix/store/biiyfhdwgcmaww86604v2g8ggvbrzy9n-hashable-1.2.7.0' from 'https://cache.nixos.org'...
copying path '/nix/store/8pm22lrmyqjs6fkmzp8zl3r60c2lxi8a-data-default-class-0.1.2.0' from 'https://cache.nixos.org'...
copying path '/nix/store/rlgs8lrd9h08qd74l54nrcfp0d41y9aw-hostname-1.0' from 'https://cache.nixos.org'...
copying path '/nix/store/fl3xqrvkdb3kks55v0m925azrxj21dg7-managed-1.0.6' from 'https://cache.nixos.org'...
copying path '/nix/store/if6iq54ab6ikcp6ygc2i478zz7l4lmdr-network-2.8.0.1' from 'https://cache.nixos.org'...
copying path '/nix/store/gfjql3ga2da91d6543jmjbgjs12g841z-optional-args-1.0.2' from 'https://cache.nixos.org'...
copying path '/nix/store/r1clb9n99rmgdkqsf0964bml2bbbb8vc-contravariant-1.5.2' from 'https://cache.nixos.org'...
copying path '/nix/store/ipn4n37fadri5c4gk5r1c5mag4ql3kb1-primitive-0.6.4.0' from 'https://cache.nixos.org'...
copying path '/nix/store/w0svccn89i3c43vpl4wnp3wahd9adw7p-random-1.1' from 'https://cache.nixos.org'...
copying path '/nix/store/c6s5xcw3ynzv6cccclbkz0l51gbz4r0x-async-2.2.2' from 'https://cache.nixos.org'...
copying path '/nix/store/93j97pi456qng01g0shap0cphbyhy490-semigroups-0.18.5' from 'https://cache.nixos.org'...
copying path '/nix/store/lbkjabkih38d809cg427svsqsy5kcx1i-system-filepath-0.4.14' from 'https://cache.nixos.org'...
copying path '/nix/store/0f9sikmp8v9f1pj53xppbzc0l10xzib9-tagged-0.8.6' from 'https://cache.nixos.org'...
copying path '/nix/store/0s4i7ppmmsjnvv59242hxp7lh9ikhgxq-ansi-terminal-0.9.1' from 'https://cache.nixos.org'...
copying path '/nix/store/vrvaw8iikvaibyfzhm85ckx3ycva0794-th-abstraction-0.3.1.0' from 'https://cache.nixos.org'...
copying path '/nix/store/gpmzxa27cq4lvx38pwlxznv329qp6f58-transformers-compat-0.6.5' from 'https://cache.nixos.org'...
copying path '/nix/store/7abin48xdjdv0lpqcm2pkg1vhcmf7ivw-unix-compat-0.5.2' from 'https://cache.nixos.org'...
copying path '/nix/store/870zg5b5hlasmix084w7h288fqpqnfdc-unordered-containers-0.2.10.0' from 'https://cache.nixos.org'...
copying path '/nix/store/9gbn0vvbln9rvrxf0m8a284jizxhab9k-zlib-0.6.2.1' from 'https://cache.nixos.org'...
copying path '/nix/store/fyp3wza0fhw2dwz9r1na10yi4n61w33y-vector-0.12.0.3' from 'https://cache.nixos.org'...
copying path '/nix/store/w5hj7j12m2vyjg0lqaqzlvwgwws4lkgb-distributive-0.6.1' from 'https://cache.nixos.org'...
copying path '/nix/store/32dxjr64kfl5gz4sik5hipqdxdhrp1v3-system-fileio-0.3.16.4' from 'https://cache.nixos.org'...
copying path '/nix/store/ymy70b8ccy9lhaxkrjghx4f8fd3dc2bd-ansi-wl-pprint-0.6.9' from 'https://cache.nixos.org'...
copying path '/nix/store/9kk7lds4byyxyhnkbxq3i9m8hyh82xss-constraints-0.10.1' from 'https://cache.nixos.org'...
copying path '/nix/store/x3r7qk82zcg5ggn6m3gzkp14kxsjwcl0-exceptions-0.10.3' from 'https://cache.nixos.org'...
copying path '/nix/store/96g58a5zdkwynxs6s0k2cszb0nzfy0zw-transformers-base-0.4.5.2' from 'https://cache.nixos.org'...
copying path '/nix/store/1j5n19lqm5gkh664l5a7zpwkyvwpzw85-comonad-5.0.6' from 'https://cache.nixos.org'...
copying path '/nix/store/545rnrnhqrplxckazhrfl022xlbjf8yr-streaming-commons-0.2.1.1' from 'https://cache.nixos.org'...
copying path '/nix/store/v4i8sqms64338n10j11cc57kfprnfg0k-optparse-applicative-0.14.3.0' from 'https://cache.nixos.org'...
copying path '/nix/store/qk9g8cy3v7wamqlf1wl4577aaq4m45c5-temporary-1.3' from 'https://cache.nixos.org'...
copying path '/nix/store/dbb0dmms7lvhwl68cnbh4dbnc7s0pwh5-monad-control-1.0.2.3' from 'https://cache.nixos.org'...
copying path '/nix/store/k9q3wggd0i9p06yd25g4fcq9fwmpi4cx-bifunctors-5.5.6' from 'https://cache.nixos.org'...
copying path '/nix/store/dkvyqdfmbhiqyx4v7ryvv2vqbgz6bnxz-lifted-base-0.2.3.12' from 'https://cache.nixos.org'...
copying path '/nix/store/ldgbnzygvzdmv94h39ks6p26c1fga8xw-enclosed-exceptions-1.0.3' from 'https://cache.nixos.org'...
copying path '/nix/store/llli2dswd6jhgp0j96x1phwg689cwxm7-lifted-async-0.10.0.4' from 'https://cache.nixos.org'...
copying path '/nix/store/4dl5nsigabvnl9qjf80vskj3ixzjil22-vector-builder-0.3.8' from 'https://cache.nixos.org'...
copying path '/nix/store/wvrqwsk7g405z2xr3v8dk2zakfrpi4y1-vector-th-unbox-0.2.1.7' from 'https://cache.nixos.org'...
copying path '/nix/store/cxlfyz4zfd5zsl0xnw3ncr4w8bgak9pw-profunctors-5.3' from 'https://cache.nixos.org'...
copying path '/nix/store/h2rx35vh4rqflgifggprhjyk8dw8wphv-semigroupoids-5.3.4' from 'https://cache.nixos.org'...
copying path '/nix/store/b3ja606prxyj5ln2xfxwlr19f8jlkzkp-math-functions-0.3.3.0' from 'https://cache.nixos.org'...
copying path '/nix/store/1n8qmf05b8amp8zg30wpbz4qdi54l6jr-shelly-1.8.1' from 'https://cache.nixos.org'...
copying path '/nix/store/r18i427zbwz70z500vqgj72capmvpv31-mwc-random-0.14.0.0' from 'https://cache.nixos.org'...
copying path '/nix/store/7rirnns8ar7zjb49xjqfjmlvfmqy5p23-foldl-1.4.5' from 'https://cache.nixos.org'...
copying path '/nix/store/9ryifyd3cqqlanvw4paflf9lnq9cakl8-turtle-1.5.15' from 'https://cache.nixos.org'...
building '/nix/store/c8pjxs7ykd2qdzhzzv1la6j042d2rbb1-ghc-8.6.5-with-packages.drv'...
/nix/store/llli2dswd6jhgp0j96x1phwg689cwxm7-lifted-async-0.10.0.4/nix-support:
propagated-build-inputs: /nix/store/9kk7lds4byyxyhnkbxq3i9m8hyh82xss-constraints-0.10.1/nix-support/propagated-build-inputs
/nix/store/96g58a5zdkwynxs6s0k2cszb0nzfy0zw-transformers-base-0.4.5.2/nix-support:
propagated-build-inputs: /nix/store/9kk7lds4byyxyhnkbxq3i9m8hyh82xss-constraints-0.10.1/nix-support/propagated-build-inputs
/nix/store/dbb0dmms7lvhwl68cnbh4dbnc7s0pwh5-monad-control-1.0.2.3/nix-support:
propagated-build-inputs: /nix/store/9kk7lds4byyxyhnkbxq3i9m8hyh82xss-constraints-0.10.1/nix-support/propagated-build-inputs
/nix/store/dkvyqdfmbhiqyx4v7ryvv2vqbgz6bnxz-lifted-base-0.2.3.12/nix-support:
propagated-build-inputs: /nix/store/9kk7lds4byyxyhnkbxq3i9m8hyh82xss-constraints-0.10.1/nix-support/propagated-build-inputs
/nix/store/ldgbnzygvzdmv94h39ks6p26c1fga8xw-enclosed-exceptions-1.0.3/nix-support:
propagated-build-inputs: /nix/store/9kk7lds4byyxyhnkbxq3i9m8hyh82xss-constraints-0.10.1/nix-support/propagated-build-inputs
/nix/store/1n8qmf05b8amp8zg30wpbz4qdi54l6jr-shelly-1.8.1/nix-support:
propagated-build-inputs: /nix/store/9kk7lds4byyxyhnkbxq3i9m8hyh82xss-constraints-0.10.1/nix-support/propagated-build-inputs
/nix/store/7abin48xdjdv0lpqcm2pkg1vhcmf7ivw-unix-compat-0.5.2/nix-support:
propagated-build-inputs: /nix/store/9kk7lds4byyxyhnkbxq3i9m8hyh82xss-constraints-0.10.1/nix-support/propagated-build-inputs
/nix/store/qk9g8cy3v7wamqlf1wl4577aaq4m45c5-temporary-1.3/nix-support:
propagated-build-inputs: /nix/store/9kk7lds4byyxyhnkbxq3i9m8hyh82xss-constraints-0.10.1/nix-support/propagated-build-inputs
/nix/store/lbkjabkih38d809cg427svsqsy5kcx1i-system-filepath-0.4.14/nix-support:
propagated-build-inputs: /nix/store/9kk7lds4byyxyhnkbxq3i9m8hyh82xss-constraints-0.10.1/nix-support/propagated-build-inputs
/nix/store/32dxjr64kfl5gz4sik5hipqdxdhrp1v3-system-fileio-0.3.16.4/nix-support:
propagated-build-inputs: /nix/store/9kk7lds4byyxyhnkbxq3i9m8hyh82xss-constraints-0.10.1/nix-support/propagated-build-inputs
/nix/store/9gbn0vvbln9rvrxf0m8a284jizxhab9k-zlib-0.6.2.1/nix-support:
propagated-build-inputs: /nix/store/9kk7lds4byyxyhnkbxq3i9m8hyh82xss-constraints-0.10.1/nix-support/propagated-build-inputs
/nix/store/w0svccn89i3c43vpl4wnp3wahd9adw7p-random-1.1/nix-support:
propagated-build-inputs: /nix/store/9kk7lds4byyxyhnkbxq3i9m8hyh82xss-constraints-0.10.1/nix-support/propagated-build-inputs
/nix/store/if6iq54ab6ikcp6ygc2i478zz7l4lmdr-network-2.8.0.1/nix-support:
propagated-build-inputs: /nix/store/9kk7lds4byyxyhnkbxq3i9m8hyh82xss-constraints-0.10.1/nix-support/propagated-build-inputs
/nix/store/545rnrnhqrplxckazhrfl022xlbjf8yr-streaming-commons-0.2.1.1/nix-support:
propagated-build-inputs: /nix/store/9kk7lds4byyxyhnkbxq3i9m8hyh82xss-constraints-0.10.1/nix-support/propagated-build-inputs
/nix/store/v4i8sqms64338n10j11cc57kfprnfg0k-optparse-applicative-0.14.3.0/nix-support:
propagated-build-inputs: /nix/store/9kk7lds4byyxyhnkbxq3i9m8hyh82xss-constraints-0.10.1/nix-support/propagated-build-inputs
/nix/store/fl3xqrvkdb3kks55v0m925azrxj21dg7-managed-1.0.6/nix-support:
propagated-build-inputs: /nix/store/9kk7lds4byyxyhnkbxq3i9m8hyh82xss-constraints-0.10.1/nix-support/propagated-build-inputs
/nix/store/4dl5nsigabvnl9qjf80vskj3ixzjil22-vector-builder-0.3.8/nix-support:
propagated-build-inputs: /nix/store/9kk7lds4byyxyhnkbxq3i9m8hyh82xss-constraints-0.10.1/nix-support/propagated-build-inputs
/nix/store/870zg5b5hlasmix084w7h288fqpqnfdc-unordered-containers-0.2.10.0/nix-support:
propagated-build-inputs: /nix/store/9kk7lds4byyxyhnkbxq3i9m8hyh82xss-constraints-0.10.1/nix-support/propagated-build-inputs
/nix/store/h2rx35vh4rqflgifggprhjyk8dw8wphv-semigroupoids-5.3.4/nix-support:
propagated-build-inputs: /nix/store/9kk7lds4byyxyhnkbxq3i9m8hyh82xss-constraints-0.10.1/nix-support/propagated-build-inputs
/nix/store/vrvaw8iikvaibyfzhm85ckx3ycva0794-th-abstraction-0.3.1.0/nix-support:
propagated-build-inputs: /nix/store/9kk7lds4byyxyhnkbxq3i9m8hyh82xss-constraints-0.10.1/nix-support/propagated-build-inputs
/nix/store/k9q3wggd0i9p06yd25g4fcq9fwmpi4cx-bifunctors-5.5.6/nix-support:
propagated-build-inputs: /nix/store/9kk7lds4byyxyhnkbxq3i9m8hyh82xss-constraints-0.10.1/nix-support/propagated-build-inputs
/nix/store/cxlfyz4zfd5zsl0xnw3ncr4w8bgak9pw-profunctors-5.3/nix-support:
propagated-build-inputs: /nix/store/9kk7lds4byyxyhnkbxq3i9m8hyh82xss-constraints-0.10.1/nix-support/propagated-build-inputs
/nix/store/wvrqwsk7g405z2xr3v8dk2zakfrpi4y1-vector-th-unbox-0.2.1.7/nix-support:
propagated-build-inputs: /nix/store/9kk7lds4byyxyhnkbxq3i9m8hyh82xss-constraints-0.10.1/nix-support/propagated-build-inputs
/nix/store/fyp3wza0fhw2dwz9r1na10yi4n61w33y-vector-0.12.0.3/nix-support:
propagated-build-inputs: /nix/store/9kk7lds4byyxyhnkbxq3i9m8hyh82xss-constraints-0.10.1/nix-support/propagated-build-inputs
/nix/store/ipn4n37fadri5c4gk5r1c5mag4ql3kb1-primitive-0.6.4.0/nix-support:
propagated-build-inputs: /nix/store/9kk7lds4byyxyhnkbxq3i9m8hyh82xss-constraints-0.10.1/nix-support/propagated-build-inputs
/nix/store/b3ja606prxyj5ln2xfxwlr19f8jlkzkp-math-functions-0.3.3.0/nix-support:
propagated-build-inputs: /nix/store/9kk7lds4byyxyhnkbxq3i9m8hyh82xss-constraints-0.10.1/nix-support/propagated-build-inputs
/nix/store/r18i427zbwz70z500vqgj72capmvpv31-mwc-random-0.14.0.0/nix-support:
propagated-build-inputs: /nix/store/9kk7lds4byyxyhnkbxq3i9m8hyh82xss-constraints-0.10.1/nix-support/propagated-build-inputs
/nix/store/hmz1w9j612wlscv3dbdjrcfdqxzlm93y-StateVar-1.2/nix-support:
propagated-build-inputs: /nix/store/9kk7lds4byyxyhnkbxq3i9m8hyh82xss-constraints-0.10.1/nix-support/propagated-build-inputs
/nix/store/r1clb9n99rmgdkqsf0964bml2bbbb8vc-contravariant-1.5.2/nix-support:
propagated-build-inputs: /nix/store/9kk7lds4byyxyhnkbxq3i9m8hyh82xss-constraints-0.10.1/nix-support/propagated-build-inputs
/nix/store/0f9sikmp8v9f1pj53xppbzc0l10xzib9-tagged-0.8.6/nix-support:
propagated-build-inputs: /nix/store/9kk7lds4byyxyhnkbxq3i9m8hyh82xss-constraints-0.10.1/nix-support/propagated-build-inputs
/nix/store/pgxzns7f59xvjr5prkalkdms50z8fhzh-base-orphans-0.8.1/nix-support:
propagated-build-inputs: /nix/store/9kk7lds4byyxyhnkbxq3i9m8hyh82xss-constraints-0.10.1/nix-support/propagated-build-inputs
/nix/store/w5hj7j12m2vyjg0lqaqzlvwgwws4lkgb-distributive-0.6.1/nix-support:
propagated-build-inputs: /nix/store/9kk7lds4byyxyhnkbxq3i9m8hyh82xss-constraints-0.10.1/nix-support/propagated-build-inputs
/nix/store/1j5n19lqm5gkh664l5a7zpwkyvwpzw85-comonad-5.0.6/nix-support:
propagated-build-inputs: /nix/store/9kk7lds4byyxyhnkbxq3i9m8hyh82xss-constraints-0.10.1/nix-support/propagated-build-inputs
/nix/store/7rirnns8ar7zjb49xjqfjmlvfmqy5p23-foldl-1.4.5/nix-support:
propagated-build-inputs: /nix/store/9kk7lds4byyxyhnkbxq3i9m8hyh82xss-constraints-0.10.1/nix-support/propagated-build-inputs
/nix/store/gpmzxa27cq4lvx38pwlxznv329qp6f58-transformers-compat-0.6.5/nix-support:
propagated-build-inputs: /nix/store/9kk7lds4byyxyhnkbxq3i9m8hyh82xss-constraints-0.10.1/nix-support/propagated-build-inputs
/nix/store/x3r7qk82zcg5ggn6m3gzkp14kxsjwcl0-exceptions-0.10.3/nix-support:
propagated-build-inputs: /nix/store/9kk7lds4byyxyhnkbxq3i9m8hyh82xss-constraints-0.10.1/nix-support/propagated-build-inputs
/nix/store/biiyfhdwgcmaww86604v2g8ggvbrzy9n-hashable-1.2.7.0/nix-support:
propagated-build-inputs: /nix/store/9kk7lds4byyxyhnkbxq3i9m8hyh82xss-constraints-0.10.1/nix-support/propagated-build-inputs
/nix/store/c6s5xcw3ynzv6cccclbkz0l51gbz4r0x-async-2.2.2/nix-support:
propagated-build-inputs: /nix/store/9kk7lds4byyxyhnkbxq3i9m8hyh82xss-constraints-0.10.1/nix-support/propagated-build-inputs
/nix/store/0s4i7ppmmsjnvv59242hxp7lh9ikhgxq-ansi-terminal-0.9.1/nix-support:
propagated-build-inputs: /nix/store/9kk7lds4byyxyhnkbxq3i9m8hyh82xss-constraints-0.10.1/nix-support/propagated-build-inputs
/nix/store/ymy70b8ccy9lhaxkrjghx4f8fd3dc2bd-ansi-wl-pprint-0.6.9/nix-support:
propagated-build-inputs: /nix/store/9kk7lds4byyxyhnkbxq3i9m8hyh82xss-constraints-0.10.1/nix-support/propagated-build-inputs
/nix/store/9ryifyd3cqqlanvw4paflf9lnq9cakl8-turtle-1.5.15/nix-support:
propagated-build-inputs: /nix/store/9kk7lds4byyxyhnkbxq3i9m8hyh82xss-constraints-0.10.1/nix-support/propagated-build-inputs
/nix/store/xzl45brcjzzq2nc4vpk77j2dlgqx74ab-ghc-8.6.5/nix-support:
propagated-build-inputs: /nix/store/9kk7lds4byyxyhnkbxq3i9m8hyh82xss-constraints-0.10.1/nix-support/propagated-build-inputs
Warning: The package list for 'hackage.haskell.org' is 52 days old.
Run 'cabal update' to get the latest list of available packages.
Warning: Parsing the index cache failed (Unknown encoding for constructor).
Trying to regenerate the index cache...
Resolving dependencies...
Build profile: -w ghc-8.6.5 -O1
In order, the following will be built (use -v for more details):
- fake-package-0 (exe:script) (first run)
Configuring executable 'script' for fake-package-0..
Preprocessing executable 'script' for fake-package-0..
Building executable 'script' for fake-package-0..
[1 of 1] Compiling Main ( Main.hs, /run/user/1000/cabal-repl.-10716/dist-newstyle/build/x86_64-linux/ghc-8.6.5/fake-package-0/x/script/build/script/script-tmp/Main.o )
Linking /run/user/1000/cabal-repl.-10716/dist-newstyle/build/x86_64-linux/ghc-8.6.5/fake-package-0/x/script/build/script/script ...
A simple `cp` utility
Usage: script SRC [DEST]
Available options:
-h,--help Show this help text
SRC The source file
DEST The destination file
06:25:12 [kiwi@mvp-nixos turtle-example]$
06:25:12 [kiwi@mvp-nixos turtle-example]$ ./program.hs
these derivations will be built:
/nix/store/nfi7gsva2z2dg0grg4v7n18lmgfhv50r-ghc-8.6.5-with-packages.drv
building '/nix/store/nfi7gsva2z2dg0grg4v7n18lmgfhv50r-ghc-8.6.5-with-packages.drv'...
/nix/store/qk9g8cy3v7wamqlf1wl4577aaq4m45c5-temporary-1.3/nix-support:
propagated-build-inputs: /nix/store/7abin48xdjdv0lpqcm2pkg1vhcmf7ivw-unix-compat-0.5.2/nix-support/propagated-build-inputs
/nix/store/lbkjabkih38d809cg427svsqsy5kcx1i-system-filepath-0.4.14/nix-support:
propagated-build-inputs: /nix/store/7abin48xdjdv0lpqcm2pkg1vhcmf7ivw-unix-compat-0.5.2/nix-support/propagated-build-inputs
/nix/store/32dxjr64kfl5gz4sik5hipqdxdhrp1v3-system-fileio-0.3.16.4/nix-support:
propagated-build-inputs: /nix/store/7abin48xdjdv0lpqcm2pkg1vhcmf7ivw-unix-compat-0.5.2/nix-support/propagated-build-inputs
/nix/store/9gbn0vvbln9rvrxf0m8a284jizxhab9k-zlib-0.6.2.1/nix-support:
propagated-build-inputs: /nix/store/7abin48xdjdv0lpqcm2pkg1vhcmf7ivw-unix-compat-0.5.2/nix-support/propagated-build-inputs
/nix/store/w0svccn89i3c43vpl4wnp3wahd9adw7p-random-1.1/nix-support:
propagated-build-inputs: /nix/store/7abin48xdjdv0lpqcm2pkg1vhcmf7ivw-unix-compat-0.5.2/nix-support/propagated-build-inputs
/nix/store/if6iq54ab6ikcp6ygc2i478zz7l4lmdr-network-2.8.0.1/nix-support:
propagated-build-inputs: /nix/store/7abin48xdjdv0lpqcm2pkg1vhcmf7ivw-unix-compat-0.5.2/nix-support/propagated-build-inputs
/nix/store/545rnrnhqrplxckazhrfl022xlbjf8yr-streaming-commons-0.2.1.1/nix-support:
propagated-build-inputs: /nix/store/7abin48xdjdv0lpqcm2pkg1vhcmf7ivw-unix-compat-0.5.2/nix-support/propagated-build-inputs
/nix/store/v4i8sqms64338n10j11cc57kfprnfg0k-optparse-applicative-0.14.3.0/nix-support:
propagated-build-inputs: /nix/store/7abin48xdjdv0lpqcm2pkg1vhcmf7ivw-unix-compat-0.5.2/nix-support/propagated-build-inputs
/nix/store/fl3xqrvkdb3kks55v0m925azrxj21dg7-managed-1.0.6/nix-support:
propagated-build-inputs: /nix/store/7abin48xdjdv0lpqcm2pkg1vhcmf7ivw-unix-compat-0.5.2/nix-support/propagated-build-inputs
/nix/store/4dl5nsigabvnl9qjf80vskj3ixzjil22-vector-builder-0.3.8/nix-support:
propagated-build-inputs: /nix/store/7abin48xdjdv0lpqcm2pkg1vhcmf7ivw-unix-compat-0.5.2/nix-support/propagated-build-inputs
/nix/store/870zg5b5hlasmix084w7h288fqpqnfdc-unordered-containers-0.2.10.0/nix-support:
propagated-build-inputs: /nix/store/7abin48xdjdv0lpqcm2pkg1vhcmf7ivw-unix-compat-0.5.2/nix-support/propagated-build-inputs
/nix/store/h2rx35vh4rqflgifggprhjyk8dw8wphv-semigroupoids-5.3.4/nix-support:
propagated-build-inputs: /nix/store/7abin48xdjdv0lpqcm2pkg1vhcmf7ivw-unix-compat-0.5.2/nix-support/propagated-build-inputs
/nix/store/vrvaw8iikvaibyfzhm85ckx3ycva0794-th-abstraction-0.3.1.0/nix-support:
propagated-build-inputs: /nix/store/7abin48xdjdv0lpqcm2pkg1vhcmf7ivw-unix-compat-0.5.2/nix-support/propagated-build-inputs
/nix/store/k9q3wggd0i9p06yd25g4fcq9fwmpi4cx-bifunctors-5.5.6/nix-support:
propagated-build-inputs: /nix/store/7abin48xdjdv0lpqcm2pkg1vhcmf7ivw-unix-compat-0.5.2/nix-support/propagated-build-inputs
/nix/store/cxlfyz4zfd5zsl0xnw3ncr4w8bgak9pw-profunctors-5.3/nix-support:
propagated-build-inputs: /nix/store/7abin48xdjdv0lpqcm2pkg1vhcmf7ivw-unix-compat-0.5.2/nix-support/propagated-build-inputs
/nix/store/wvrqwsk7g405z2xr3v8dk2zakfrpi4y1-vector-th-unbox-0.2.1.7/nix-support:
propagated-build-inputs: /nix/store/7abin48xdjdv0lpqcm2pkg1vhcmf7ivw-unix-compat-0.5.2/nix-support/propagated-build-inputs
/nix/store/fyp3wza0fhw2dwz9r1na10yi4n61w33y-vector-0.12.0.3/nix-support:
propagated-build-inputs: /nix/store/7abin48xdjdv0lpqcm2pkg1vhcmf7ivw-unix-compat-0.5.2/nix-support/propagated-build-inputs
/nix/store/ipn4n37fadri5c4gk5r1c5mag4ql3kb1-primitive-0.6.4.0/nix-support:
propagated-build-inputs: /nix/store/7abin48xdjdv0lpqcm2pkg1vhcmf7ivw-unix-compat-0.5.2/nix-support/propagated-build-inputs
/nix/store/b3ja606prxyj5ln2xfxwlr19f8jlkzkp-math-functions-0.3.3.0/nix-support:
propagated-build-inputs: /nix/store/7abin48xdjdv0lpqcm2pkg1vhcmf7ivw-unix-compat-0.5.2/nix-support/propagated-build-inputs
/nix/store/r18i427zbwz70z500vqgj72capmvpv31-mwc-random-0.14.0.0/nix-support:
propagated-build-inputs: /nix/store/7abin48xdjdv0lpqcm2pkg1vhcmf7ivw-unix-compat-0.5.2/nix-support/propagated-build-inputs
/nix/store/hmz1w9j612wlscv3dbdjrcfdqxzlm93y-StateVar-1.2/nix-support:
propagated-build-inputs: /nix/store/7abin48xdjdv0lpqcm2pkg1vhcmf7ivw-unix-compat-0.5.2/nix-support/propagated-build-inputs
/nix/store/r1clb9n99rmgdkqsf0964bml2bbbb8vc-contravariant-1.5.2/nix-support:
propagated-build-inputs: /nix/store/7abin48xdjdv0lpqcm2pkg1vhcmf7ivw-unix-compat-0.5.2/nix-support/propagated-build-inputs
/nix/store/0f9sikmp8v9f1pj53xppbzc0l10xzib9-tagged-0.8.6/nix-support:
propagated-build-inputs: /nix/store/7abin48xdjdv0lpqcm2pkg1vhcmf7ivw-unix-compat-0.5.2/nix-support/propagated-build-inputs
/nix/store/pgxzns7f59xvjr5prkalkdms50z8fhzh-base-orphans-0.8.1/nix-support:
propagated-build-inputs: /nix/store/7abin48xdjdv0lpqcm2pkg1vhcmf7ivw-unix-compat-0.5.2/nix-support/propagated-build-inputs
/nix/store/w5hj7j12m2vyjg0lqaqzlvwgwws4lkgb-distributive-0.6.1/nix-support:
propagated-build-inputs: /nix/store/7abin48xdjdv0lpqcm2pkg1vhcmf7ivw-unix-compat-0.5.2/nix-support/propagated-build-inputs
/nix/store/1j5n19lqm5gkh664l5a7zpwkyvwpzw85-comonad-5.0.6/nix-support:
propagated-build-inputs: /nix/store/7abin48xdjdv0lpqcm2pkg1vhcmf7ivw-unix-compat-0.5.2/nix-support/propagated-build-inputs
/nix/store/7rirnns8ar7zjb49xjqfjmlvfmqy5p23-foldl-1.4.5/nix-support:
propagated-build-inputs: /nix/store/7abin48xdjdv0lpqcm2pkg1vhcmf7ivw-unix-compat-0.5.2/nix-support/propagated-build-inputs
/nix/store/gpmzxa27cq4lvx38pwlxznv329qp6f58-transformers-compat-0.6.5/nix-support:
propagated-build-inputs: /nix/store/7abin48xdjdv0lpqcm2pkg1vhcmf7ivw-unix-compat-0.5.2/nix-support/propagated-build-inputs
/nix/store/x3r7qk82zcg5ggn6m3gzkp14kxsjwcl0-exceptions-0.10.3/nix-support:
propagated-build-inputs: /nix/store/7abin48xdjdv0lpqcm2pkg1vhcmf7ivw-unix-compat-0.5.2/nix-support/propagated-build-inputs
/nix/store/biiyfhdwgcmaww86604v2g8ggvbrzy9n-hashable-1.2.7.0/nix-support:
propagated-build-inputs: /nix/store/7abin48xdjdv0lpqcm2pkg1vhcmf7ivw-unix-compat-0.5.2/nix-support/propagated-build-inputs
/nix/store/c6s5xcw3ynzv6cccclbkz0l51gbz4r0x-async-2.2.2/nix-support:
propagated-build-inputs: /nix/store/7abin48xdjdv0lpqcm2pkg1vhcmf7ivw-unix-compat-0.5.2/nix-support/propagated-build-inputs
/nix/store/0s4i7ppmmsjnvv59242hxp7lh9ikhgxq-ansi-terminal-0.9.1/nix-support:
propagated-build-inputs: /nix/store/7abin48xdjdv0lpqcm2pkg1vhcmf7ivw-unix-compat-0.5.2/nix-support/propagated-build-inputs
/nix/store/ymy70b8ccy9lhaxkrjghx4f8fd3dc2bd-ansi-wl-pprint-0.6.9/nix-support:
propagated-build-inputs: /nix/store/7abin48xdjdv0lpqcm2pkg1vhcmf7ivw-unix-compat-0.5.2/nix-support/propagated-build-inputs
/nix/store/9ryifyd3cqqlanvw4paflf9lnq9cakl8-turtle-1.5.15/nix-support:
propagated-build-inputs: /nix/store/7abin48xdjdv0lpqcm2pkg1vhcmf7ivw-unix-compat-0.5.2/nix-support/propagated-build-inputs
/nix/store/xzl45brcjzzq2nc4vpk77j2dlgqx74ab-ghc-8.6.5/nix-support:
propagated-build-inputs: /nix/store/7abin48xdjdv0lpqcm2pkg1vhcmf7ivw-unix-compat-0.5.2/nix-support/propagated-build-inputs
A simple `cp` utility
Usage: program.hs SRC [DEST]
Available options:
-h,--help Show this help text
SRC The source file
DEST The destination file
06:27:57 [kiwi@mvp-nixos turtle-example]$
#!/usr/bin/env nix-shell
#! nix-shell -p cabal-install -p "haskellPackages.ghcWithPackages (p: with p; [turtle shelly])" -i cabal
#!/usr/bin/env cabal
{- cabal:
build-depends: base >= 4.11
, shelly >= 1.8.1
, turtle
-}
{-# LANGUAGE OverloadedStrings #-}
import Prelude hiding (FilePath)
import Turtle
parser :: Parser (FilePath, Maybe FilePath)
parser =
(,) <$> argPath "src" "The source file" <*>
optional (argPath "dest" "The destination file")
main = do
(src, mDest) <- options "A simple `cp` utility" parser
case mDest of
Nothing -> input src & stdout
Just dest -> cp src dest
-- https://xkcd.com/1319/
#!/usr/bin/env nix-shell
#! nix-shell -p "haskellPackages.ghcWithPackages (p: with p; [turtle])" -i runhaskell
{-# LANGUAGE OverloadedStrings #-}
import Prelude hiding (FilePath)
import Turtle
parser :: Parser (FilePath, Maybe FilePath)
parser =
(,) <$> argPath "src" "The source file" <*>
optional (argPath "dest" "The destination file")
main = do
(src, mDest) <- options "A simple `cp` utility" parser
case mDest of
Nothing -> input src & stdout
Just dest -> cp src dest
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.