Turing- complete You can think of Dhall as: JSON + functions + types + imports The dhall-json package provides a Dhall to JSON compiler and a Dhall to YAML compiler. Moritz Angermann, Haskell.sg March Meetup, Singapore
dhall-json-1.0.11 $ arm-linux-gnueabihf-cabal new-build \ --configure-option=--host=arm-linux-gnueabihf [...] After searching the rest of the dependency tree exhaustively, these were the goals I've had most trouble fulfilling: base, scientific, hashable, unordered-containers, yaml, dhall-json Moritz Angermann, Haskell.sg March Meetup, Singapore
\ --configure-option=--host=arm-linux-gnueabihf \ --allow-newer [...] next goal: integer-gmp (dependency of text-format-0.3.1.1) rejecting: integer-gmp-1.0.1.0, integer-gmp-1.0.0.1, integer-gmp-1.0.0.0, integer-gmp-0.5.1.0 (only already installed instances can be used) After searching the rest of the dependency tree exhaustively, these were the goals I've had most trouble fulfilling: integer-gmp, text-format, dhall-json, dhall Moritz Angermann, Haskell.sg March Meetup, Singapore
(dependency of cryptonite-0.25:+integer-gmp) rejecting: integer-gmp-1.0.1.0, integer-gmp-1.0.0.1, integer-gmp-1.0.0.0, integer-gmp-0.5.1.0 (only already installed instances can be used) Moritz Angermann, Haskell.sg March Meetup, Singapore
cryptonite by setting the - integer-gmp flag. Let's add that to the cabal.project file: packages: . text-format-0.3.1.1 package cryptonite flags: -integer-gmp Moritz Angermann, Haskell.sg March Meetup, Singapore
instance for (Semigroup Poke) arising from the superclasses of an instance declaration • In the instance declaration for ‘Monoid Poke’ | 122 | instance Monoid Poke where | ^^^^^^^^^^^ [...] Failed to build blaze-builder-0.4.0.2 (which is required by exe:dhall-to-yaml from dhall-json-1.0.11 and exe:dhall-to-json from dhall-json-1.0.11). See the build log above for details. Moritz Angermann, Haskell.sg March Meetup, Singapore
secure: True + root-keys: [...] + key-threshold: 3 to the cabal.project file and running cabal new-update should make the overlay available. Moritz Angermann, Haskell.sg March Meetup, Singapore
could refer to either ‘GHC.Base.<>’, imported from ‘GHC.Base’ at Data/Text/Format/Functions.hs:22:1-15 or ‘Data.Text.Format.Functions.<>’, defined at Data/Text/Format/Functions.hs:32:1 | 16 | (<>) | ^^^^ [...] Failed to build text-format-0.3.1.1 (which is required by exe:dhall-to-yaml from dhall-json-1.0.11 and exe:dhall-to-json from dhall-json-1.0.11). Moritz Angermann, Haskell.sg March Meetup, Singapore
‘GHC.Integer.GMP.Internals’ Perhaps you meant GHC.Integer.Simple.Internals (needs flag -package-key integer-simple-0.1.1.1) Use -v to see a list of the files searched for. | 32 | import GHC.Integer.GMP.Internals | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [...] Failed to build text-format-0.3.1.1 (which is required by exe:dhall-to-yaml from dhall-json-1.0.11 and exe:dhall-to-json from dhall-json-1.0.11). Moritz Angermann, Haskell.sg March Meetup, Singapore
It could refer to either ‘Prelude.<>’, imported from ‘Prelude’ at Data/Text/Format/Int.hs:12:8-27 (and originally defined in ‘GHC.Base’) or ‘Data.Text.Format.Functions.<>’, imported from ‘Data.Text.Format.Functions’ at Data/Text/Format/Int.hs:21:36-39 | 55 | | i < 0 = minus <> go (-i) | ^^ [...] Failed to build text-format-0.3.1.1 (which is required by exe:dhall-to-yaml from dhall-json-1.0.11 and exe:dhall-to-json from dhall-json-1.0.11). Moritz Angermann, Haskell.sg March Meetup, Singapore
for (Semigroup Format) arising from the superclasses of an instance declaration • In the instance declaration for ‘Monoid Format’ | 49 | instance Monoid Format where | ^^^^^^^^^^^^^ [...] Failed to build text-format-0.3.1.1 (which is required by exe:dhall-to-yaml from dhall-json-1.0.11 and exe:dhall-to-json from dhall-json-1.0.11). Moritz Angermann, Haskell.sg March Meetup, Singapore
a <> Format b = Format (a <> b) + instance Monoid Format where - Format a `mappend` Format b = Format (a `mappend` b) + mempty = Format mempty in text-format-0.3.1.1/Data/Text/Format/Types/ Internal.hs Moritz Angermann, Haskell.sg March Meetup, Singapore
to either ‘Prelude.<>’, imported from ‘Prelude’ at Data/Text/Buildable.hs:14:8-26 (and originally defined in ‘GHC.Base’) or ‘Data.Text.Format.Functions.<>’, imported from ‘Data.Text.Format.Functions’ at Data/Text/Buildable.hs:22:36-39 | 109 | build a = build (numerator a) <> singleton '/' <> build (denominator a) | ^^ [...] Failed to build text-format-0.3.1.1 (which is required by exe:dhall-to-yaml from dhall-json-1.0.11 and exe:dhall-to-json from dhall-json-1.0.11). Moritz Angermann, Haskell.sg March Meetup, Singapore
refer to either ‘Data.Text.Format.Functions.<>’, imported from ‘Data.Text.Format.Functions’ at Data/Text/Format.hs:39:36-39 or ‘Prelude.<>’, imported from ‘Prelude’ at Data/Text/Format.hs:44:1-34 (and originally defined in ‘GHC.Base’) | 68 | where go (f:fs) (y:ys) = f <> y <> go fs ys | ^^ [...] Failed to build text-format-0.3.1.1 (which is required by exe:dhall-to-yaml from dhall-json-1.0.11 and exe:dhall-to-json from dhall-json-1.0.11). Moritz Angermann, Haskell.sg March Meetup, Singapore
in cross-compilation mode [...] Failed to build zlib-0.6.1.2 (which is required by exe:dhall-to-yaml from dhall-json-1.0.11 and exe:dhall-to-json from dhall-json-1.0.11). This means, hsc2hs can't handle const_str directives... Moritz Angermann, Haskell.sg March Meetup, Singapore
fixed for a while, but no new release of zlib has been cut yet... $ git clone [email protected]:haskell/zlib.git and patch cabal.project -packages: . text-format-0.3.1.1 +packages: . text-format-0.3.1.1 zlib Moritz Angermann, Haskell.sg March Meetup, Singapore
required by exe:dhall-to-yaml from dhall-json-1.0.11 and exe:dhall-to-json from dhall-json-1.0.11). The failure occurred during the configure step. The build process terminated with exit code 126 This usually happens when the package uses build-type: Custom. Moritz Angermann, Haskell.sg March Meetup, Singapore
required by exe:dhall-to-yaml from dhall-json-1.0.11 and exe:dhall-to-json from dhall-json-1.0.11). The failure occurred during the configure step. The build process terminated with exit code 126 Again, cabal unpack, adding it to the cabal.project and changing the build-type. The same for the comonad, lens, trifecta and semigroupoid packages as well. Moritz Angermann, Haskell.sg March Meetup, Singapore
in multiple packages: base-4.11.0.0 contravariant-1.4.1 | 49 | import Data.Functor.Contravariant (Contravariant(..)) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [...] cabal: Failed to build profunctors-5.2.2 (which is required by exe:dhall-to-yaml from dhall-json-1.0.11 and exe:dhall-to-json from dhall-json-1.0.11). Moritz Angermann, Haskell.sg March Meetup, Singapore
cabal: Failed to build trifecta-1.7.1.1 (which is required by exe:dhall-to-yaml from dhall-json-1.0.11 and exe:dhall-to-json from dhall-json-1.0.11). Text.Trifecta.Rendering contains: {-# LANGUAGE TemplateHaskell #-} [...] makeClassy ''Fixit Moritz Angermann, Haskell.sg March Meetup, Singapore
../../libraries/libiserv package libiserv flags: +network Building remote-iserv for the Raspberry Pi: $ arm-linux-gnueabihf-cabal new-build --configure-option=--host=arm-linux-gnueabihf [...] Linking /some/rather/long/path/remote-iserv Moritz Angermann, Haskell.sg March Meetup, Singapore
it on port 5001 with a temporary tmp in the current working directory. $ scp /path/to/remote-iserv pi@raspberrypi $ ssh pi@raspberrypi './remote-iserv ./tmp 5001' Moritz Angermann, Haskell.sg March Meetup, Singapore
(Chunks s a)) arising from the superclasses of an instance declaration • In the instance declaration for ‘Monoid (Chunks s a)’ | 475 | instance Monoid (Chunks s a) where | ^^^^^^^^^^^^^^^^^^^ [...] cabal: Failed to build dhall-1.10.0 (which is required by exe:dhall-to-yaml from dhall-json-1.0.11 and exe:dhall-to-json from dhall-json-1.0.11). Moritz Angermann, Haskell.sg March Meetup, Singapore
hiding (const, pi, (<>)) [...] +instance Semigroup a => Semigroup (Parser a) where + (<>) = liftA2 (<>) instance Monoid a => Monoid (Parser a) where mempty = pure mempty - mappend = liftA2 mappend in Dhall.Parser Moritz Angermann, Haskell.sg March Meetup, Singapore