sirlensalot / fadno-xml Goto Github PK
View Code? Open in Web Editor NEWXML/XSD combinators/schemas/codegen, plus MusicXML
License: BSD 2-Clause "Simplified" License
XML/XSD combinators/schemas/codegen, plus MusicXML
License: BSD 2-Clause "Simplified" License
Is it possible to have a Hello Word of your library? I mean, how translate the following “Hello World” of MusicXML?
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE score-partwise PUBLIC
"-//Recordare//DTD MusicXML 3.1 Partwise//EN"
"http://www.musicxml.org/dtds/partwise.dtd">
<score-partwise version="3.1">
<part-list>
<score-part id="P1">
<part-name>Music</part-name>
</score-part>
</part-list>
<part id="P1">
<measure number="1">
<attributes>
<divisions>1</divisions>
<key>
<fifths>0</fifths>
</key>
<time>
<beats>4</beats>
<beat-type>4</beat-type>
</time>
<clef>
<sign>G</sign>
<line>2</line>
</clef>
</attributes>
<note>
<pitch>
<step>C</step>
<octave>4</octave>
</pitch>
<duration>4</duration>
<type>whole</type>
</note>
</measure>
</part>
</score-partwise>
See StrongAccent
:
https://github.com/sirlensalot/fadno-xml/blob/master/src/Fadno/MusicXml/MusicXml31.hs#L11152
Lines 4453 to 4462 in ee456e4
Also affects HeelToe
, MetronomeTuplet
. Note that xs:basicContent
with similar application is handled correctly.
Windows PowerShell
Copyright (C) Microsoft Corporation. Tutti i diritti sono riservati.
PS C:\Users\user> cabal --http-transport=plain-http update
Downloading the latest package list from hackage.haskell.org
PS C:\Users\user> cabal install fadno-xml
Resolving dependencies...
cabal.exe: Could not resolve dependencies:
trying: fadno-xml-1.1.0 (user goal)
next goal: base (dependency of fadno-xml-1.1.0)
rejecting: base-4.10.1.0/installed-4.1... (conflict: fadno-xml => base==4.9.*)
rejecting: base-4.10.1.0, base-4.10.0.0, base-4.9.1.0, base-4.9.0.0,
base-4.8.2.0, base-4.8.1.0, base-4.8.0.0, base-4.7.0.2, base-4.7.0.1,
base-4.7.0.0, base-4.6.0.1, base-4.6.0.0, base-4.5.1.0, base-4.5.0.0,
base-4.4.1.0, base-4.4.0.0, base-4.3.1.0, base-4.3.0.0, base-4.2.0.2,
base-4.2.0.1, base-4.2.0.0, base-4.1.0.0, base-4.0.0.0, base-3.0.3.2,
base-3.0.3.1 (constraint from non-upgradeable package requires installed
instance)
After searching the rest of the dependency tree exhaustively, these were the
goals I've had most trouble fulfilling: base, fadno-xml
I'm trying to use this package to auto-generate the Haskell bindings for a QuickBooks' REST API (they publish an XSD for their API and supporting data-structures).
I followed your code at https://github.com/slpopejoy/fadno-xml/blob/e16b79de5c3273141b676f84f5e971658fa94cdf/src/Fadno/Gen/GenMusicXml.hs and came up with https://github.com/saurabhnanda/quickbooks2/blob/57f59bd314a9c8ef34c1d657b6db4a3ab2554139/src/Lib.hs However, it results in a stack-overflow error, as demonstrated below:
[LOCALHOST:~/projects/haskell-quickbooks (master) saurabhnanda] $ stack ghci
haskell-quickbooks-0.1.0.0: initial-build-steps (lib)
Configuring GHCi with the following packages: haskell-quickbooks
GHCi, version 8.4.3: http://www.haskell.org/ghc/ :? for help
[1 of 1] Compiling Lib ( /Users/saurabhnanda/projects/haskell-quickbooks/src/Lib.hs, interpreted )
Ok, one module loaded.
Loaded GHCi configuration from /private/var/folders/j7/fgt692sj0wzg0lvrk86ctnxc0000gn/T/ghci78292/ghci-script
*Lib Lib> parseXsd
*** Exception: stack overflow
*Lib Lib>
How can I debug this further? One difference in the two code snippets is that my code snippet is not using namespaceSchema
to adjust namespaces? Would that cause an infinite loop somewhere, or would that cause a dangling reference (and thus, a different error)?
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.