brendanhay / ede Goto Github PK
View Code? Open in Web Editor NEWTemplating language with similar syntax and features to Liquid or Jinja2.
License: Other
Templating language with similar syntax and features to Liquid or Jinja2.
License: Other
Docs annotate some Collection filters wrongly.
-- [@reverse :: Collection -> Scientific@]
-- /See/: Text.'Data.Text.reverse', Vector.'Data.Vector.reverse'
--
-- [@head :: Collection -> Scientific@]
-- /See/: Text.'Data.Text.head', Vector.'Data.Vector.head'
--
-- [@last :: Collection -> Scientific@]
-- /See/: Text.'Data.Text.last', Vector.'Data.Vector.last'
--
-- [@tail :: Collection -> Scientific@]
-- /See/: Text.'Data.Text.tail', Vector.'Data.Vector.tail'
--
-- [@init@ @:: Collection -> Scientific@]
-- /See/: Text.'Data.Text.init', Vector.'Data.Vector.init'
--
-- [@'Data.HashMap.Strict.keys' :: Collection -> Scientific@]
--
-- [@'Data.HashMap.Strict.elems' :: Collection -> Scientific@]
They all return Scientific
which is apparently wrong.
Hi,
There are filters implemented at Text.Ede.Internal.Filters, but some of them are't included on the documentation: Text.Ede.Filters.
I intend to just add the missing filters to documentation and make a PR, but I thought that maybe you have a reason for not including them (backward-compatibility etc), so I wanted to ask first.
So, is there any reason for not documenting some filters?
After reading http://www.gnu.org/licenses/license-list.html#MPL-2.0 I'm unsure if the "Incompatible With Secondary Licenses" notice would preclude me from depending on ED-E in my GPL application. Did you include this notice for a reason? If not would you be willing to remove it?
prettyprinter-1.6.2
does not provide the Prettyprinter
module, which first appears in 1.7.0
and is imported by the app side (but not the library side) of ede
.
I can make a PR that raises the lower bound, unless there's some other way you would prefer to handle this?
Can't build ede on Windows. I'm getting following error :
C:\Users\reygoch\Desktop\cervantes>stack build
cervantes-0.1.0.0: unregistering (missing dependencies: ede)
ede-0.2.8.4: configure
ede-0.2.8.4: build
Progress: 1/2
-- While building package ede-0.2.8.4 using:
C:\sr\setup-exe-cache\x86_64-windows\setup-Simple-Cabal-1.22.5.0-ghc-7.10.3.exe --builddir=.stack-work\dist\2672c1f3 build --ghc-options " -ddump-hi -ddump-to-file"
Process exited with code: ExitFailure 1
Logs have been written to: C:\Users\reygoch\Desktop\cervantes\.stack-work\logs\ede-0.2.8.4.log
Configuring ede-0.2.8.4...
Building ede-0.2.8.4...
Preprocessing library ede-0.2.8.4...
[ 1 of 10] Compiling Text.EDE.Internal.Types ( src\Text\EDE\Internal\Types.hs, .stack-work\dist\2672c1f3\build\Text\EDE\Internal\Types.o )
<command line>: can't load .so/.DLL for: stdc++.dll (addDLL: could not load DLL)
ghc.EXE: stdc++: The specified module could not be found.
I'm not sure how to resolve this. stdc++
should be accessible to the linker but it fails for some reason.
Ability to designate constraints for the LHS
of a filter's Fun
/ TFun
.
Preprocessing executable 'ede' for ede-0.3.3.0.. [304/183885]
Building executable 'ede' for ede-0.3.3.0..
[1 of 2] Compiling Main
/var/stackage/work/unpack-dir/unpacked/ede-0.3.3.0-3642a98f0c978cf9d7ce64edff0f310c79d8c3fbc9d92c8f5f75b0cf41341524/app/Main.
hs:66:11: error: [GHC-76037]
Not in scope: ‘Pretty.empty’
NB: the module ‘Options.Applicative.Help.Pretty’ does not export ‘empty’.
Suggested fix:
Perhaps use one of these:
data constructor ‘Pretty.SEmpty’ (imported from Options.Applicative.Help.Pretty),
‘Pretty.emptyDoc’ (imported from Options.Applicative.Help.Pretty)
|
66 | [ Pretty.empty,
| ^^^^^^^^^^^^
/var/stackage/work/unpack-dir/unpacked/ede-0.3.3.0-3642a98f0c978cf9d7ce64edff0f310c79d8c3fbc9d92c8f5f75b0cf41341524/app/Main.
hs:71:32: error: [GHC-76037]
Not in scope: ‘Pretty.<$$>’
NB: the module ‘Options.Applicative.Help.Pretty’ does not export ‘<$$>’.
Suggested fix:
Perhaps use one of these:
‘Pretty.<>’ (imported from Options.Applicative.Help.Pretty),
‘Pretty.<+>’ (imported from Options.Applicative.Help.Pretty),
‘Pretty.</>’ (imported from Options.Applicative.Help.Pretty)
|
71 | Pretty.<$$> "Both objects are merged into one with the keys of \
| ^^^^^^^^^^^
/var/stackage/work/unpack-dir/unpacked/ede-0.3.3.0-3642a98f0c978cf9d7ce64edff0f310c79d8c3fbc9d92c8f5f75b0cf41341524/app/Main.
hs:79:32: error: [GHC-76037]
Not in scope: ‘Pretty.<$$>’
NB: the module ‘Options.Applicative.Help.Pretty’ does not export ‘<$$>’.
Suggested fix:
Perhaps use one of these:
‘Pretty.<>’ (imported from Options.Applicative.Help.Pretty),
‘Pretty.<+>’ (imported from Options.Applicative.Help.Pretty),
‘Pretty.</>’ (imported from Options.Applicative.Help.Pretty)
|
79 | Pretty.<$$> "The JSON object is read from STDIN."
| ^^^^^^^^^^^
:
I'm trying to convert an existing Liquid template to an EDE template and not sure how to convert something like this:
{% let contact = booking.contacts[0] %}
{{ contact }}
{% endlet %}
Reinstitute disjoint rational/double values in the type system
I think this is reproducible with stack build ede --resolver nightly
Preprocessing library ede-0.2.8.4...
[ 1 of 10] Compiling Text.EDE.Internal.Types ( src/Text/EDE/Internal/Types.hs, dist/build/Text/EDE/Internal/Types.o )
src/Text/EDE/Internal/Types.hs:29:1: warning: [-Wunused-imports]
The import of ‘Data.Foldable’ is redundant
except perhaps to import instances from ‘Data.Foldable’
To import instances alone, use: import Data.Foldable()
[ 2 of 10] Compiling Text.EDE.Internal.AST ( src/Text/EDE/Internal/AST.hs, dist/build/Text/EDE/Internal/AST.o )
[ 3 of 10] Compiling Text.EDE.Internal.Syntax ( src/Text/EDE/Internal/Syntax.hs, dist/build/Text/EDE/Internal/Syntax.o )
[ 4 of 10] Compiling Text.EDE.Internal.Quoting ( src/Text/EDE/Internal/Quoting.hs, dist/build/Text/EDE/Internal/Quoting.o )
src/Text/EDE/Internal/Quoting.hs:75:1: warning: [-Wredundant-constraints]
• Redundant constraint: ToJSON a
• In the type signature for:
qprim :: (ToJSON a, Quote a) => a -> Term
[ 5 of 10] Compiling Text.EDE.Internal.Filters ( src/Text/EDE/Internal/Filters.hs, dist/build/Text/EDE/Internal/Filters.o )
src/Text/EDE/Internal/Filters.hs:21:1: warning: [-Wunused-imports]
The import of ‘Control.Applicative’ is redundant
except perhaps to import instances from ‘Control.Applicative’
To import instances alone, use: import Control.Applicative()
[ 6 of 10] Compiling Text.EDE.Filters ( src/Text/EDE/Filters.hs, dist/build/Text/EDE/Filters.o )
[ 7 of 10] Compiling Text.EDE.Internal.Parser ( src/Text/EDE/Internal/Parser.hs, dist/build/Text/EDE/Internal/Parser.o )
src/Text/EDE/Internal/Parser.hs:113:35: error:
• Couldn't match expected type ‘Text.PrettyPrint.ANSI.Leijen.Doc’
with actual type ‘ErrInfo’
• In the first argument of ‘Failure’, namely ‘e’
In the expression: Failure e
In an equation for ‘res’: res (Tri.Failure e) = Failure e
Linking dist/build/golden/golden ...
Running 1 test suites...
Test suite golden: RUNNING...
golden: test/resources/: getDirectoryContents: does not exist (No such file or directory)
Test suite golden: FAIL
Test suite logged to: dist/test/ede-0.2.5-golden.log
0 of 1 test suites (0 of 1 test cases) passed.
We're in the process of migrating some Liquid templates (rendered via Rails) over to Haskell and are evaluating our options. Does ede
have the ability to do something like https://github.com/Shopify/liquid/wiki/Liquid-for-Programmers#create-your-own-tags ?
I wrote a tiny program to use EDE from the command line like this:
ede --template-file sometemplate.tpl --context-json '{"x": true}'
What would you think about adding an executable to this package? I'll submit a PR if there's any interest.
Trifecta has switched to prettyprinter
from ansi-wl-pprint
which leads to compilation errors. A fast and dirty fix would be adding an upper limit for the trifecta version.
diff --git a/ede.cabal b/ede.cabal
index 04aa6e3..cc666bc 100644
--- a/ede.cabal
+++ b/ede.cabal
@@ -86,7 +86,7 @@ library
, text >= 1.2
, text-format >= 0.3
, text-manipulate >= 0.1.2
- , trifecta >= 1.6
+ , trifecta >= 1.6 && < 2.1
, unordered-containers >= 0.2.3
, vector >= 0.7.1
Ability to strip/preseve whitespace through the use of syntactic variations of the section tags, for example:
{%-
Strips any preceeding newline+%}
Preserves the following newlineAs an aside, this work could be used to make the Parsec
based parser more robust, or switch to Attoparsec
using the line/meta information preserving behaviour of attoparsec-conduit
.
I think https://hackage.haskell.org/package/ede-0.2.8.4/docs/Text-EDE.html forgot to parse the template before rendering.
Example:
{{ field.value.name | justifyRight(field.value.indent) }} :: {{ field.value.type }}
Error:
error: variable indent.value.field doesn't exist.
As seen on the Stackage build server:
[ 2 of 10] Compiling Text.EDE.Internal.Types ( src/Text/EDE/Internal/Types.hs, dist/build/Text/EDE/Internal/Types.o )
src/Text/EDE/Internal/Types.hs:151:17: error:
• No instance for (Data.Functor.Classes.Eq1 ExpF)
arising from the second field of ‘Template’ (type ‘Exp Delta’)
Possible fix:
use a standalone 'deriving instance' declaration,
so you can specify the instance context yourself
• When deriving the instance for (Eq Template)
|
151 | } deriving (Eq)
| ^^
Reproduced locally like so:
stack unpack ede-0.2.8.7 && cd ede-0.2.8.7
edit stack.yaml # add the following stack.yaml
stack build
# stack.yaml
resolver: nightly-2018-03-10
extra-deps:
- free-5.0.1
- lens-4.16
I want to use filters which operate on complete object, such as:
orderSummary :: Order -> Text
This forces me to define an Unqote
instance for the Order
type, which (as per my understanding) is a Aeson.Value -> Order
parsing step. Does this mean that each of the following call sites is going to parse Aeson.Value -> Order
?
{{ order | orderSummary }}
{{ order | orderTotal }}
{{ order | shippingAddress }}
Is there a faster/performant way of doing this? Instead of filters, should I make these available as template-snippets that can be included via a custom resolver?
Version of ED-E used:
Description of issue:
The .cabal file for ED-E gives the bounds on prettyprinter-ansi-terminal
as ">=1.1":
Line 84 in 6d62d1f
However, Text.EDE.Internal.Types
attempts to import Prettyprinter.Render.Terminal
, and such a module has only existed in prettyprinter-ansi-terminal
since version 1.1.2:
ede/lib/Text/EDE/Internal/Types.hs
Line 43 in 6d62d1f
Compilation will therefore fail against some versions of prettyprinter-ansi-terminal
(namely 1.1, 1.1.1, 1.1.1.1 and 1.1.1.2) that the ED-E .cabal file claims are compatible.
lib/Text/EDE/Internal/Quoting.hs:132:23: error:
• No instance for (Unquote (HashMap.HashMap Text Value))
arising from a use of ‘unquote’
• In the second argument of ‘(<$>)’, namely ‘unquote k n q’
In the second argument of ‘(<|>)’, namely
‘hashMap <$> unquote k n q’
In the first argument of ‘(<|>)’, namely
‘text <$> unquote k n q <|> hashMap <$> unquote k n q’
|
132 | <|> hashMap <$> unquote k n q
| ^^^^^^^^^^^^^
cabal: Failed to build ede-0.3.2.0
elsif
else if
elseif
as an additional branch to if
expressionsTrying to install/use this on NixOS and getting three test failures (full log shown but errors are near the bottom):
NIXPKGS_ALLOW_BROKEN=1 nix-shell -p 'haskellPackages.ede'
this derivation will be built:
/nix/store/5dzjwj06vhvgp8a8rradzbbdmv1snlb7-ede-0.3.3.0.drv
building '/nix/store/5dzjwj06vhvgp8a8rradzbbdmv1snlb7-ede-0.3.3.0.drv'...
setupCompilerEnvironmentPhase
Build with /nix/store/0li1q2ql4ydar1a6nm5kzhbz4jx4xz6y-ghc-9.2.8.
unpacking sources
unpacking source archive /nix/store/c2vbazkpgs9ygrl49g1m9qjj8fkmlxgc-ede-0.3.3.0.tar.gz
source root is ede-0.3.3.0
setting SOURCE_DATE_EPOCH to timestamp 1000000000 of file ede-0.3.3.0/test/resources/whitespace.golden
patching sources
compileBuildDriverPhase
setupCompileFlags: -package-db=/build/tmp.RFygzCtln3/setup-package.conf.d -j4 +RTS -A64M -RTS -threaded -rtsopts
[1 of 1] Compiling Main ( /nix/store/4mdp8nhyfddh7bllbi7xszz7k9955n79-Setup.hs, /build/tmp.RFygzCtln3/Main.o )
Linking Setup ...
updateAutotoolsGnuConfigScriptsPhase
configuring
configureFlags: --verbose --prefix=/nix/store/cgvia8n5h7rigj0z906s7b7sx5kpd7sw-ede-0.3.3.0 --libdir=$prefix/lib/$compiler --libsubdir=$abi/$libname --datadir=/nix/store/lbq13b4iqmlvf3y0sschjhldganlaj3c-ede-0.3.3.0-data/share/ghc-9.2.8 --docdir=/nix/store/9fi7hx32305wdfsrp5ab1zcm0gdwl0sq-ede-0.3.3.0-doc/share/doc/ede-0.3.3.0 --with-gcc=gcc --package-db=/build/tmp.RFygzCtln3/package.conf.d --ghc-options=-j4 +RTS -A64M -RTS --disable-split-objs --disable-library-profiling --disable-profiling --enable-shared --disable-coverage --enable-static --disable-executable-dynamic --enable-tests --disable-benchmarks --enable-library-vanilla --disable-library-for-ghci --ghc-option=-split-sections --ghc-options=-haddock --extra-lib-dirs=/nix/store/854f0nmfw60xm0i92y32ixhx0q90lxrw-ncurses-6.4/lib --extra-lib-dirs=/nix/store/a7vg9xr4ydv2lrwq6l7j7lvlssnnpg7x-libffi-3.4.4/lib --extra-lib-dirs=/nix/store/dhdvxikql0ks6dlpqd5q90ya1zh0fq4z-gmp-with-cxx-6.2.1/lib
Using Parsec parser
Configuring ede-0.3.3.0...
Dependency aeson >=1.4: using aeson-2.0.3.0
Dependency base >=4.13 && <5: using base-4.16.4.0
Dependency bytestring >=0.10.4: using bytestring-0.11.4.0
Dependency comonad >=4.2: using comonad-5.0.8
Dependency directory >=1.2: using directory-1.3.6.2
Dependency filepath >=1.2: using filepath-1.4.2.2
Dependency free >=4.8: using free-5.1.10
Dependency lens >=4.0: using lens-5.1.1
Dependency mtl >=2.1.3.1: using mtl-2.2.2
Dependency parsers >=0.12.1.1: using parsers-0.12.11
Dependency prettyprinter >=1.7: using prettyprinter-1.7.1
Dependency prettyprinter-ansi-terminal >=1.1: using
prettyprinter-ansi-terminal-1.1.3
Dependency scientific >=0.3.1: using scientific-0.3.7.0
Dependency text >=1.2: using text-1.2.5.0
Dependency text-manipulate >=0.1.2: using text-manipulate-0.3.1.0
Dependency trifecta >=2.1: using trifecta-2.1.2
Dependency unordered-containers >=0.2.3: using unordered-containers-0.2.19.1
Dependency vector >=0.7.1: using vector-0.12.3.1
Dependency aeson >=1.4: using aeson-2.0.3.0
Dependency attoparsec >=0.13: using attoparsec-0.14.4
Dependency base >=4.13 && <5: using base-4.16.4.0
Dependency bytestring >=0.10.4: using bytestring-0.11.4.0
Dependency ede: using ede-0.3.3.0
Dependency optparse-applicative >=0.11: using optparse-applicative-0.17.0.0
Dependency prettyprinter >=1.7: using prettyprinter-1.7.1
Dependency prettyprinter-ansi-terminal >=1.1: using
prettyprinter-ansi-terminal-1.1.3
Dependency text >=1.2: using text-1.2.5.0
Dependency unordered-containers >=0.2.3: using unordered-containers-0.2.19.1
Dependency aeson: using aeson-2.0.3.0
Dependency base >=4.13 && <5: using base-4.16.4.0
Dependency bifunctors: using bifunctors-5.5.15
Dependency bytestring: using bytestring-0.11.4.0
Dependency directory: using directory-1.3.6.2
Dependency ede: using ede-0.3.3.0
Dependency filepath: using filepath-1.4.2.2
Dependency tasty: using tasty-1.4.3
Dependency tasty-golden: using tasty-golden-2.3.5
Dependency text: using text-1.2.5.0
Source component graph:
component lib
component exe:ede dependency lib
component test:tests dependency lib
Configured component graph:
component ede-0.3.3.0-AhvD1snca056wTXE289Nz1
include aeson-2.0.3.0-3rvfBGKTJAzDJjcIevGmZ1
include base-4.16.4.0
include bytestring-0.11.4.0
include comonad-5.0.8-CgOHx2gbKtD3oNqLVVtWsJ
include directory-1.3.6.2
include filepath-1.4.2.2
include free-5.1.10-BPencYBgApQBaVShZpMHso
include lens-5.1.1-Lx9Bopgq7ZC5whILGnd8uw
include mtl-2.2.2
include parsers-0.12.11-HkUKrrvEEc0FYcGXywpQFc
include prettyprinter-1.7.1-HrDU9aNhok13fjOTXkGJhy
include prettyprinter-ansi-terminal-1.1.3-1U7H4UXYq03DP8SsQwHSrQ
include scientific-0.3.7.0-HMtllvLDX3sDUfdSDrZEWW
include text-1.2.5.0
include text-manipulate-0.3.1.0-3gsPugu5XCS6k9GYk37Qfb
include trifecta-2.1.2-3wwAPt2g3x83U6jy0pJVqj
include unordered-containers-0.2.19.1-1xGMByKzOnx5XPZoHk1gqS
include vector-0.12.3.1-5pojYDdjh4AEETlNEViSBp
component ede-0.3.3.0-JofX4n0wlce52L9sdAqIDY-ede
include aeson-2.0.3.0-3rvfBGKTJAzDJjcIevGmZ1
include attoparsec-0.14.4-3GhgAXHJF7A7ustQPJvY2C
include base-4.16.4.0
include bytestring-0.11.4.0
include ede-0.3.3.0-AhvD1snca056wTXE289Nz1
include optparse-applicative-0.17.0.0-71lNY5aXsCGJbY6IeIKkGV
include prettyprinter-1.7.1-HrDU9aNhok13fjOTXkGJhy
include prettyprinter-ansi-terminal-1.1.3-1U7H4UXYq03DP8SsQwHSrQ
include text-1.2.5.0
include unordered-containers-0.2.19.1-1xGMByKzOnx5XPZoHk1gqS
component ede-0.3.3.0-Ri5Ri61gT7FpHwyEAOMIH-tests
include aeson-2.0.3.0-3rvfBGKTJAzDJjcIevGmZ1
include base-4.16.4.0
include bifunctors-5.5.15-8wETbZsdxyP7sV11bf8Ys0
include bytestring-0.11.4.0
include directory-1.3.6.2
include ede-0.3.3.0-AhvD1snca056wTXE289Nz1
include filepath-1.4.2.2
include tasty-1.4.3-I7UTXXBNQmpBuxsD7iBDf
include tasty-golden-2.3.5-Bue71sJFNuoAj982QDuH7p
include text-1.2.5.0
Linked component graph:
unit ede-0.3.3.0-AhvD1snca056wTXE289Nz1
include aeson-2.0.3.0-3rvfBGKTJAzDJjcIevGmZ1
include base-4.16.4.0
include bytestring-0.11.4.0
include comonad-5.0.8-CgOHx2gbKtD3oNqLVVtWsJ
include directory-1.3.6.2
include filepath-1.4.2.2
include free-5.1.10-BPencYBgApQBaVShZpMHso
include lens-5.1.1-Lx9Bopgq7ZC5whILGnd8uw
include mtl-2.2.2
include parsers-0.12.11-HkUKrrvEEc0FYcGXywpQFc
include prettyprinter-1.7.1-HrDU9aNhok13fjOTXkGJhy
include prettyprinter-ansi-terminal-1.1.3-1U7H4UXYq03DP8SsQwHSrQ
include scientific-0.3.7.0-HMtllvLDX3sDUfdSDrZEWW
include text-1.2.5.0
include text-manipulate-0.3.1.0-3gsPugu5XCS6k9GYk37Qfb
include trifecta-2.1.2-3wwAPt2g3x83U6jy0pJVqj
include unordered-containers-0.2.19.1-1xGMByKzOnx5XPZoHk1gqS
include vector-0.12.3.1-5pojYDdjh4AEETlNEViSBp
Text.EDE=ede-0.3.3.0-AhvD1snca056wTXE289Nz1:Text.EDE,Text.EDE.Filters=ede-0.3.3.0-AhvD1snca056wTXE289Nz1:Text.EDE.Filters,Text.EDE.Internal.AST=ede-0.3.3.0-AhvD1snca056wTXE289Nz1:Text.EDE.Internal.AST,Text.EDE.Internal.Compat=ede-0.3.3.0-AhvD1snca056wTXE289Nz1:Text.EDE.Internal.Compat,Text.EDE.Internal.Eval=ede-0.3.3.0-AhvD1snca056wTXE289Nz1:Text.EDE.Internal.Eval,Text.EDE.Internal.Filters=ede-0.3.3.0-AhvD1snca056wTXE289Nz1:Text.EDE.Internal.Filters,Text.EDE.Internal.Parser=ede-0.3.3.0-AhvD1snca056wTXE289Nz1:Text.EDE.Internal.Parser,Text.EDE.Internal.Quoting=ede-0.3.3.0-AhvD1snca056wTXE289Nz1:Text.EDE.Internal.Quoting,Text.EDE.Internal.Syntax=ede-0.3.3.0-AhvD1snca056wTXE289Nz1:Text.EDE.Internal.Syntax,Text.EDE.Internal.Types=ede-0.3.3.0-AhvD1snca056wTXE289Nz1:Text.EDE.Internal.Types
unit ede-0.3.3.0-JofX4n0wlce52L9sdAqIDY-ede
include aeson-2.0.3.0-3rvfBGKTJAzDJjcIevGmZ1
include attoparsec-0.14.4-3GhgAXHJF7A7ustQPJvY2C
include base-4.16.4.0
include bytestring-0.11.4.0
include ede-0.3.3.0-AhvD1snca056wTXE289Nz1
include optparse-applicative-0.17.0.0-71lNY5aXsCGJbY6IeIKkGV
include prettyprinter-1.7.1-HrDU9aNhok13fjOTXkGJhy
include prettyprinter-ansi-terminal-1.1.3-1U7H4UXYq03DP8SsQwHSrQ
include text-1.2.5.0
include unordered-containers-0.2.19.1-1xGMByKzOnx5XPZoHk1gqS
unit ede-0.3.3.0-Ri5Ri61gT7FpHwyEAOMIH-tests
include aeson-2.0.3.0-3rvfBGKTJAzDJjcIevGmZ1
include base-4.16.4.0
include bifunctors-5.5.15-8wETbZsdxyP7sV11bf8Ys0
include bytestring-0.11.4.0
include directory-1.3.6.2
include ede-0.3.3.0-AhvD1snca056wTXE289Nz1
include filepath-1.4.2.2
include tasty-1.4.3-I7UTXXBNQmpBuxsD7iBDf
include tasty-golden-2.3.5-Bue71sJFNuoAj982QDuH7p
include text-1.2.5.0
Ready component graph:
definite ede-0.3.3.0-AhvD1snca056wTXE289Nz1
depends aeson-2.0.3.0-3rvfBGKTJAzDJjcIevGmZ1
depends base-4.16.4.0
depends bytestring-0.11.4.0
depends comonad-5.0.8-CgOHx2gbKtD3oNqLVVtWsJ
depends directory-1.3.6.2
depends filepath-1.4.2.2
depends free-5.1.10-BPencYBgApQBaVShZpMHso
depends lens-5.1.1-Lx9Bopgq7ZC5whILGnd8uw
depends mtl-2.2.2
depends parsers-0.12.11-HkUKrrvEEc0FYcGXywpQFc
depends prettyprinter-1.7.1-HrDU9aNhok13fjOTXkGJhy
depends prettyprinter-ansi-terminal-1.1.3-1U7H4UXYq03DP8SsQwHSrQ
depends scientific-0.3.7.0-HMtllvLDX3sDUfdSDrZEWW
depends text-1.2.5.0
depends text-manipulate-0.3.1.0-3gsPugu5XCS6k9GYk37Qfb
depends trifecta-2.1.2-3wwAPt2g3x83U6jy0pJVqj
depends unordered-containers-0.2.19.1-1xGMByKzOnx5XPZoHk1gqS
depends vector-0.12.3.1-5pojYDdjh4AEETlNEViSBp
definite ede-0.3.3.0-JofX4n0wlce52L9sdAqIDY-ede
depends aeson-2.0.3.0-3rvfBGKTJAzDJjcIevGmZ1
depends attoparsec-0.14.4-3GhgAXHJF7A7ustQPJvY2C
depends base-4.16.4.0
depends bytestring-0.11.4.0
depends ede-0.3.3.0-AhvD1snca056wTXE289Nz1
depends optparse-applicative-0.17.0.0-71lNY5aXsCGJbY6IeIKkGV
depends prettyprinter-1.7.1-HrDU9aNhok13fjOTXkGJhy
depends prettyprinter-ansi-terminal-1.1.3-1U7H4UXYq03DP8SsQwHSrQ
depends text-1.2.5.0
depends unordered-containers-0.2.19.1-1xGMByKzOnx5XPZoHk1gqS
definite ede-0.3.3.0-Ri5Ri61gT7FpHwyEAOMIH-tests
depends aeson-2.0.3.0-3rvfBGKTJAzDJjcIevGmZ1
depends base-4.16.4.0
depends bifunctors-5.5.15-8wETbZsdxyP7sV11bf8Ys0
depends bytestring-0.11.4.0
depends directory-1.3.6.2
depends ede-0.3.3.0-AhvD1snca056wTXE289Nz1
depends filepath-1.4.2.2
depends tasty-1.4.3-I7UTXXBNQmpBuxsD7iBDf
depends tasty-golden-2.3.5-Bue71sJFNuoAj982QDuH7p
depends text-1.2.5.0
Using Cabal-3.6.3.0 compiled by ghc-9.2
Using compiler: ghc-9.2.8
Using install prefix: /nix/store/cgvia8n5h7rigj0z906s7b7sx5kpd7sw-ede-0.3.3.0
Executables installed in:
/nix/store/cgvia8n5h7rigj0z906s7b7sx5kpd7sw-ede-0.3.3.0/bin
Libraries installed in:
/nix/store/cgvia8n5h7rigj0z906s7b7sx5kpd7sw-ede-0.3.3.0/lib/ghc-9.2.8/aarch64-linux-ghc-9.2.8/ede-0.3.3.0-AhvD1snca056wTXE289Nz1
Dynamic Libraries installed in:
/nix/store/cgvia8n5h7rigj0z906s7b7sx5kpd7sw-ede-0.3.3.0/lib/ghc-9.2.8/aarch64-linux-ghc-9.2.8
Private executables installed in:
/nix/store/cgvia8n5h7rigj0z906s7b7sx5kpd7sw-ede-0.3.3.0/libexec/aarch64-linux-ghc-9.2.8/ede-0.3.3.0
Data files installed in:
/nix/store/lbq13b4iqmlvf3y0sschjhldganlaj3c-ede-0.3.3.0-data/share/ghc-9.2.8/aarch64-linux-ghc-9.2.8/ede-0.3.3.0
Documentation installed in:
/nix/store/9fi7hx32305wdfsrp5ab1zcm0gdwl0sq-ede-0.3.3.0-doc/share/doc/ede-0.3.3.0
Configuration files installed in:
/nix/store/cgvia8n5h7rigj0z906s7b7sx5kpd7sw-ede-0.3.3.0/etc
No alex found
Using ar found on system at:
/nix/store/g9dgx34dg6aah8j41ficwksv9akg2rjm-binutils-2.40/bin/ar
No c2hs found
No cpphs found
No doctest found
Using gcc version 12.2.0 given by user at:
/nix/store/cjp67pyjk691vgwzv6n05gb3kxbc38qv-gcc-wrapper-12.2.0/bin/gcc
Using ghc version 9.2.8 found on system at:
/nix/store/0li1q2ql4ydar1a6nm5kzhbz4jx4xz6y-ghc-9.2.8/bin/ghc
Using ghc-pkg version 9.2.8 found on system at:
/nix/store/0li1q2ql4ydar1a6nm5kzhbz4jx4xz6y-ghc-9.2.8/bin/ghc-pkg-9.2.8
No ghcjs found
No ghcjs-pkg found
No greencard found
Using haddock version 2.26.0 found on system at:
/nix/store/0li1q2ql4ydar1a6nm5kzhbz4jx4xz6y-ghc-9.2.8/bin/haddock-ghc-9.2.8
No happy found
Using haskell-suite found on system at: haskell-suite-dummy-location
Using haskell-suite-pkg found on system at: haskell-suite-pkg-dummy-location
No hmake found
Using hpc version 0.68 found on system at:
/nix/store/0li1q2ql4ydar1a6nm5kzhbz4jx4xz6y-ghc-9.2.8/bin/hpc
Using hsc2hs version 0.68.8 found on system at:
/nix/store/0li1q2ql4ydar1a6nm5kzhbz4jx4xz6y-ghc-9.2.8/bin/hsc2hs
Using hscolour version 1.24 found on system at:
/nix/store/k0zpp265iyazlrpjqps8c81dpk8g5y4i-hscolour-1.24.4/bin/HsColour
No jhc found
Using ld found on system at:
/nix/store/42ifmhpxl36yz89y9cvs8x9s3mgzkw9j-binutils-wrapper-2.40/bin/ld.gold
No pkg-config found
Using runghc version 9.2.8 found on system at:
/nix/store/0li1q2ql4ydar1a6nm5kzhbz4jx4xz6y-ghc-9.2.8/bin/runghc-9.2.8
Using strip version 2.40 found on system at:
/nix/store/cjp67pyjk691vgwzv6n05gb3kxbc38qv-gcc-wrapper-12.2.0/bin/strip
Using tar found on system at:
/nix/store/7g23m0v4r5s00vcq4lk783dn3a72lxqn-gnutar-1.34/bin/tar
No uhc found
building
Preprocessing library for ede-0.3.3.0..
Building library for ede-0.3.3.0..
[ 1 of 11] Compiling Paths_ede ( dist/build/autogen/Paths_ede.hs, dist/build/Paths_ede.o, dist/build/Paths_ede.dyn_o )
[ 2 of 11] Compiling Text.EDE.Internal.Compat ( lib/Text/EDE/Internal/Compat.hs, dist/build/Text/EDE/Internal/Compat.o, dist/build/Text/EDE/Internal/Compat.dyn_o )
[ 3 of 11] Compiling Text.EDE.Internal.Types ( lib/Text/EDE/Internal/Types.hs, dist/build/Text/EDE/Internal/Types.o, dist/build/Text/EDE/Internal/Types.dyn_o )
[ 4 of 11] Compiling Text.EDE.Internal.Syntax ( lib/Text/EDE/Internal/Syntax.hs, dist/build/Text/EDE/Internal/Syntax.o, dist/build/Text/EDE/Internal/Syntax.dyn_o )
[ 5 of 11] Compiling Text.EDE.Internal.Quoting ( lib/Text/EDE/Internal/Quoting.hs, dist/build/Text/EDE/Internal/Quoting.o, dist/build/Text/EDE/Internal/Quoting.dyn_o )
[ 6 of 11] Compiling Text.EDE.Internal.Filters ( lib/Text/EDE/Internal/Filters.hs, dist/build/Text/EDE/Internal/Filters.o, dist/build/Text/EDE/Internal/Filters.dyn_o )
[ 7 of 11] Compiling Text.EDE.Filters ( lib/Text/EDE/Filters.hs, dist/build/Text/EDE/Filters.o, dist/build/Text/EDE/Filters.dyn_o )
[ 8 of 11] Compiling Text.EDE.Internal.Eval ( lib/Text/EDE/Internal/Eval.hs, dist/build/Text/EDE/Internal/Eval.o, dist/build/Text/EDE/Internal/Eval.dyn_o )
[ 9 of 11] Compiling Text.EDE.Internal.AST ( lib/Text/EDE/Internal/AST.hs, dist/build/Text/EDE/Internal/AST.o, dist/build/Text/EDE/Internal/AST.dyn_o )
[10 of 11] Compiling Text.EDE.Internal.Parser ( lib/Text/EDE/Internal/Parser.hs, dist/build/Text/EDE/Internal/Parser.o, dist/build/Text/EDE/Internal/Parser.dyn_o )
[11 of 11] Compiling Text.EDE ( lib/Text/EDE.hs, dist/build/Text/EDE.o, dist/build/Text/EDE.dyn_o )
Preprocessing executable 'ede' for ede-0.3.3.0..
Building executable 'ede' for ede-0.3.3.0..
[1 of 2] Compiling Main ( app/Main.hs, dist/build/ede/ede-tmp/Main.o )
[2 of 2] Compiling Paths_ede ( dist/build/ede/autogen/Paths_ede.hs, dist/build/ede/ede-tmp/Paths_ede.o )
Linking dist/build/ede/ede ...
Preprocessing test suite 'tests' for ede-0.3.3.0..
Building test suite 'tests' for ede-0.3.3.0..
<no location info>: warning: [-Wunused-packages]
The following packages were specified via -package or -package-id flags,
but were not needed for compilation:
- bifunctors-5.5.15-8wETbZsdxyP7sV11bf8Ys0
[1 of 2] Compiling Paths_ede ( dist/build/tests/autogen/Paths_ede.hs, dist/build/tests/tests-tmp/Paths_ede.o )
[2 of 2] Compiling Main ( test/Main.hs, dist/build/tests/tests-tmp/Main.o )
<no location info>: warning: [-Wunused-packages]
The following packages were specified via -package or -package-id flags,
but were not needed for compilation:
- bifunctors-5.5.15-8wETbZsdxyP7sV11bf8Ys0
Linking dist/build/tests/tests ...
buildPhase completed in 2 minutes 54 seconds
running tests
Running 1 test suites...
Test suite tests: RUNNING...
ED-E
/build/ede-0.3.3.0/test/resources/syntax.ede: OK (0.01s)
/build/ede-0.3.3.0/test/resources/single-line.ede: OK (0.03s)
/build/ede-0.3.3.0/test/resources/literals.ede: OK
/build/ede-0.3.3.0/test/resources/defined.ede: OK (0.01s)
/build/ede-0.3.3.0/test/resources/list-subdivision.ede: OK (0.02s)
/build/ede-0.3.3.0/test/resources/list-sorting.ede: OK
/build/ede-0.3.3.0/test/resources/empty.ede: OK
/build/ede-0.3.3.0/test/resources/text-whitespace.ede: OK (0.01s)
/build/ede-0.3.3.0/test/resources/relational-conditions.ede: OK (0.04s)
/build/ede-0.3.3.0/test/resources/text-casing.ede: OK (0.02s)
/build/ede-0.3.3.0/test/resources/case.ede: OK (0.02s)
/build/ede-0.3.3.0/test/resources/nesting.ede: OK (0.01s)
/build/ede-0.3.3.0/test/resources/boolean-operands.ede: OK (0.02s)
/build/ede-0.3.3.0/test/resources/whitespace.ede: FAIL
Test output was different from '/build/ede-0.3.3.0/test/resources/whitespace.golden'. Output of ["diff","-u","/build/ede-0.3.3.0/test/resources/whitespace.golden","/build/whitespace545-13.actual"]:
--- /build/ede-0.3.3.0/test/resources/whitespace.golden 2001-09-09 01:46:40.000000000 +0000
+++ /build/whitespace545-13.actual 2023-10-31 16:26:00.770092549 +0000
@@ -6,6 +6,8 @@
+
test
+
Use -p '/\/build\/ede-0.3.3.0\/test\/resources\/whitespace.ede/' to rerun this test only.
/build/ede-0.3.3.0/test/resources/text-indentation.ede: OK (0.02s)
/build/ede-0.3.3.0/test/resources/list-transformation.ede: OK
/build/ede-0.3.3.0/test/resources/null.ede: OK (0.01s)
/build/ede-0.3.3.0/test/resources/comments.ede: OK (0.01s)
/build/ede-0.3.3.0/test/resources/variables.ede: OK (0.02s)
/build/ede-0.3.3.0/test/resources/numbers.ede: OK (0.01s)
/build/ede-0.3.3.0/test/resources/newlines.ede: OK (0.01s)
/build/ede-0.3.3.0/test/resources/boolean-conditions.ede: OK (0.03s)
/build/ede-0.3.3.0/test/resources/looping.ede: OK (0.03s)
/build/ede-0.3.3.0/test/resources/raw.ede: OK (0.02s)
/build/ede-0.3.3.0/test/resources/polymorphic-show.ede: FAIL (0.02s)
Test output was different from '/build/ede-0.3.3.0/test/resources/polymorphic-show.golden'. Output of ["diff","-u","/build/ede-0.3.3.0/test/resources/polymorphic-show.golden","/build/polymorphic-show545-24.actual"]:
--- /build/ede-0.3.3.0/test/resources/polymorphic-show.golden 2001-09-09 01:46:40.000000000 +0000
+++ /build/polymorphic-show545-24.actual 2023-10-31 16:26:00.962095564 +0000
@@ -4,4 +4,4 @@
1.0
["a","b","c","d","e"]
[1,2,3,4,5]
-{"foo":"x","bar":"y"}
+{"bar":"y","foo":"x"}
Use -p '/\/build\/ede-0.3.3.0\/test\/resources\/polymorphic-show.ede/' to rerun this test only.
/build/ede-0.3.3.0/test/resources/sequence-empty.ede: OK (0.02s)
/build/ede-0.3.3.0/test/resources/text-ellipsis.ede: OK (0.02s)
/build/ede-0.3.3.0/test/resources/text.ede: OK (0.01s)
/build/ede-0.3.3.0/test/resources/binding.ede: OK (0.02s)
/build/ede-0.3.3.0/test/resources/text-substitution.ede: OK (0.02s)
/build/ede-0.3.3.0/test/resources/sequence-length.ede: OK (0.01s)
/build/ede-0.3.3.0/test/resources/include.ede: FAIL
file /build/ede-0.3.3.0/./test/resources/include.child2 doesn't exist.
CallStack (from HasCallStack):
error, called at test/Main.hs:59:8 in main:Main
Use -p '/\/build\/ede-0.3.3.0\/test\/resources\/include.ede/' to rerun this test only.
3 out of 32 tests failed (0.58s)
Test suite tests: FAIL
Test suite logged to: dist/test/ede-0.3.3.0-tests.log
0 of 1 test suites (0 of 1 test cases) passed.
error: builder for '/nix/store/5dzjwj06vhvgp8a8rradzbbdmv1snlb7-ede-0.3.3.0.drv' failed with exit code 1;
last 10 log lines:
> /build/ede-0.3.3.0/test/resources/include.ede: FAIL
> file /build/ede-0.3.3.0/./test/resources/include.child2 doesn't exist.
> CallStack (from HasCallStack):
> error, called at test/Main.hs:59:8 in main:Main
> Use -p '/\/build\/ede-0.3.3.0\/test\/resources\/include.ede/' to rerun this test only.
>
> 3 out of 32 tests failed (0.58s)
> Test suite tests: FAIL
> Test suite logged to: dist/test/ede-0.3.3.0-tests.log
> 0 of 1 test suites (0 of 1 test cases) passed.
For full logs, run 'nix log /nix/store/5dzjwj06vhvgp8a8rradzbbdmv1snlb7-ede-0.3.3.0.drv'.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.