forked from tuura/pangraph
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implementing a simple graph api (tuura#14)
* updated readme * Spacing changes * Updated to simple interface, list based * Removed old implementation and altered the current parser to use the new graph. VHDL section has been disabled but I commit again before the pr is merged to fix it. * VHDL working again, most likely the list of nodes it used was reordered in conversion to and from maps. Moved helper functions into the internal module. Added functions like and * split insertEdges into addEdge and updateEdge * Fixed git issues, last few commits contain details of this commit * Another iteration on the api, taking the idea that the maps and list librarys have lots of fucntions for manipulating their respective instances * Applied hlint * bump stack to lts-8.22 * Update to readme and example * Added a second function which returns a pangraph or throws errors rather then returning either * Changed vertices and edges function in Graph.hs to use Map.Strict elem fucntion * Removed dead code, improved error handling with a sum type in Error.hs, concrete implementations their instances are now in an internal file to avoid cyclic dependencies * Changed Edge show implementation to make it compilable * Merged Error.hs and GraphTypes.hs into Pangraph.hs * Removed Error.hs in favour of Maybe to reflect errors in graphs * Improved implementation of *ContainsKey functions * Applied hlint and uses of case statements to specialised functions * Moved the reading example into an area that is compiled * Apply Hlint * Updated readme * Refactor of Test.hs following your style recommendations * Formatting changes in monadic code, bug fix for VHDL testing * Used HUnit in testing, no file IO is required for testing the run now * Added Haddock, updates to readme * Spacing Change * Fixed mistake in example * Bump to lts-9.00 * Haddock typo * Fixed all --wall warnings * Fixed --wall messages in test/ * VHDL now exported through Pangraph.VHDL with ByteString Interface, removed large VHDL test case, corrected import syntax in some modules * Moved the VHDL writer to have the same nomenclature as the reset of the project, made import names clearer
- Loading branch information
1 parent
0037184
commit 56da512
Showing
19 changed files
with
1,104 additions
and
457 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.