@@ -1,8 +1,8 @@
11Cabal-Version: 2.2
22Name: project-m36
3−Version: 0.9.3
3+Version: 0.9.2
44License: MIT
5−--note that this license specification is erroneous and only labeled MIT to appease hackage which does not recognize public domain packages in cabal >2.2- Project:M36 is dedicated to the public domain
5+--note that this license specification is erroneous and only labeled MIT to appease hackage which does not recognize public domain packages in cabal >2.2- Project:M36 is dedicated to the public domain
66Build-Type: Simple
77Homepage: https://github.com/agentm/project-m36
88Bug-Reports: https://github.com/agentm/project-m36/issues
@@ -35,7 +35,7 @@ Flag haskell-scripting
3535 Default: True
3636
3737Library
38− Build-Depends: base>=4.8 && < 4.15, ghc-paths, mtl, containers, unordered-containers, hashable, haskeline, directory, MonadRandom, random-shuffle, uuid >= 1.3.12, cassava >= 0.4.5.1 && < 0.6, text, bytestring, deepseq, deepseq-generics, vector, parallel, monad-parallel, exceptions, transformers, gnuplot, filepath, zlib, directory, temporary, stm, time, hashable-time, old-locale, rset, attoparsec, either, base64-bytestring, data-interval, extended-reals, aeson >= 1.1, path-pieces, conduit, resourcet, http-api-data, semigroups, QuickCheck, quickcheck-instances, list-t, stm-containers >= 0.2.15, foldl, optparse-applicative, Glob, cryptohash-sha256, text-manipulate >= 0.2.0.1 && < 0.4, winery, curryer-rpc, network, async, vector-instances, recursion-schemes, streamly >= 0.7.2, convertible
38+ Build-Depends: base>=4.8 && < 4.15, ghc-paths, mtl, containers, unordered-containers, hashable, haskeline, directory, MonadRandom, random-shuffle, uuid >= 1.3.12, cassava >= 0.4.5.1 && < 0.6, text, bytestring, deepseq, deepseq-generics, vector, parallel, monad-parallel, exceptions, transformers, gnuplot, filepath, zlib, directory, temporary, stm, time, hashable-time, old-locale, rset, attoparsec, either, base64-bytestring, data-interval, extended-reals, aeson >= 1.1, path-pieces, conduit, resourcet, http-api-data, semigroups, QuickCheck, quickcheck-instances, list-t, stm-containers >= 0.2.15, foldl, optparse-applicative, Glob, cryptohash-sha256, text-manipulate >= 0.2.0.1 && < 0.4, winery, curryer-rpc, network, async, vector-instances, recursion-schemes
3939 if flag(haskell-scripting)
4040 Build-Depends: ghc >= 8.2 && < 8.11
4141 CPP-Options: -DPM36_HASKELL_SCRIPTING
@@ -63,7 +63,6 @@ Library
6363 ProjectM36.AtomFunction,
6464 ProjectM36.AtomFunctionError,
6565 ProjectM36.ScriptSession,
66− ProjectM36.Shortcuts,
6766 ProjectM36.DatabaseContextFunction,
6867 ProjectM36.DatabaseContextFunctionError,
6968 ProjectM36.DatabaseContextFunctionUtils,
@@ -143,7 +142,7 @@ Library
143142 Hs-Source-Dirs: ./src/lib
144143 Default-Language: Haskell2010
145144 Default-Extensions: OverloadedStrings, CPP
146− if !flag(stack)
145+ if !flag(stack)
147146 Build-Depends: deferred-folds
148147
149148Executable tutd
@@ -187,8 +186,7 @@ Executable tutd
187186 curryer-rpc,
188187 prettyprinter,
189188 cryptohash-sha256,
190− --due to decode signature change
191− base16-bytestring >= 1.0.0.0,
189+ base16-bytestring,
192190 http-conduit,
193191 modern-uri,
194192 http-types
@@ -270,11 +268,11 @@ Executable bigrel
270268 GHC-Prof-Options: -fprof-auto -rtsopts -threaded -Wall
271269
272270Common commontest
273− Default-Language: Haskell2010
271+ Default-Language: Haskell2010
274272 Build-Depends: base, HUnit, Cabal, containers, hashable, unordered-containers, mtl, vector, time, hashable-time, bytestring, uuid, stm, deepseq, deepseq-generics,parallel, cassava, attoparsec, gnuplot, directory, temporary, haskeline, megaparsec, text, base64-bytestring, data-interval, filepath, transformers, stm-containers, list-t, websockets, optparse-applicative, network, aeson, project-m36, random, MonadRandom, semigroups, parser-combinators, winery, curryer-rpc, prettyprinter, base64-bytestring, modern-uri, http-types, http-conduit, base16-bytestring,cryptohash-sha256
275273 Default-Extensions: OverloadedStrings
276274 GHC-Options: -Wall -threaded
277− Hs-Source-Dirs: test, src/bin
275+ Hs-Source-Dirs: ./src/bin, ., test/
278276
279277Benchmark basic-benchmark
280278 Default-Language: Haskell2010
@@ -287,7 +285,7 @@ Benchmark basic-benchmark
287285 if flag(profiler)
288286 GHC-Prof-Options: -fprof-auto -rtsopts -threaded -Wall
289287
290−--benchmark inserts, updates, deletes for a basic use-case to shake out any space leaks
288+--benchmark inserts, updates, deletes for a basic use-case to shake out any space leaks
291289Benchmark update-exprs
292290 Default-Language: Haskell2010
293291 Default-Extensions: OverloadedStrings
@@ -302,7 +300,7 @@ Benchmark update-exprs
302300Test-Suite test-tutoriald
303301 import: commontest
304302 type: exitcode-stdio-1.0
305− main-is: TutorialD/InterpreterTest.hs
303+ main-is: test/TutorialD/Interpreter.hs
306304 Other-Modules: TutorialD.Interpreter, TutorialD.Interpreter.Base, TutorialD.Interpreter.Export.Base, TutorialD.Interpreter.Export.CSV, TutorialD.Interpreter.Import.Base, TutorialD.Interpreter.Import.CSV, TutorialD.Interpreter.Import.TutorialD, TutorialD.Interpreter.RODatabaseContextOperator, TutorialD.Interpreter.RelationalExpr, TutorialD.Interpreter.TransactionGraphOperator, TutorialD.Interpreter.Types, TutorialD.Interpreter.DatabaseContextExpr, TutorialD.Interpreter.InformationOperator, TutorialD.Interpreter.Import.BasicExamples, TutorialD.Interpreter.DatabaseContextIOOperator, TutorialD.Interpreter.TestBase, TutorialD.Interpreter.TransGraphRelationalOperator, TutorialD.Interpreter.SchemaOperator, TutorialD.Printer
307305 Build-Depends: base, HUnit, Cabal, containers, hashable, unordered-containers, mtl, vector, time, hashable-time, bytestring, uuid, stm, deepseq, deepseq-generics, parallel, cassava, attoparsec, gnuplot, directory, temporary, haskeline, megaparsec, text, base64-bytestring, data-interval, filepath, stm-containers, list-t, project-m36, random, MonadRandom, semigroups, parser-combinators, prettyprinter
308306
@@ -310,56 +308,56 @@ Test-Suite test-tutoriald-atomfunctionscript
310308 import: commontest
311309 type: exitcode-stdio-1.0
312310 Other-Modules: TutorialD.Interpreter, TutorialD.Interpreter.Base, TutorialD.Interpreter.DatabaseContextExpr, TutorialD.Interpreter.DatabaseContextIOOperator, TutorialD.Interpreter.Export.Base, TutorialD.Interpreter.Export.CSV, TutorialD.Interpreter.Import.Base, TutorialD.Interpreter.Import.BasicExamples, TutorialD.Interpreter.Import.CSV, TutorialD.Interpreter.Import.TutorialD, TutorialD.Interpreter.InformationOperator, TutorialD.Interpreter.RODatabaseContextOperator, TutorialD.Interpreter.RelationalExpr, TutorialD.Interpreter.TestBase, TutorialD.Interpreter.TransGraphRelationalOperator, TutorialD.Interpreter.TransactionGraphOperator, TutorialD.Interpreter.Types, TutorialD.Interpreter.SchemaOperator, TutorialD.Printer
313− main-is: TutorialD/Interpreter/AtomFunctionScript.hs
311+ main-is: test/TutorialD/Interpreter/AtomFunctionScript.hs
314312
315313Test-Suite test-tutoriald-databasecontextfunctionscript
316314 import: commontest
317315 type: exitcode-stdio-1.0
318316 Other-Modules: TutorialD.Interpreter, TutorialD.Interpreter.Base, TutorialD.Interpreter.DatabaseContextExpr, TutorialD.Interpreter.DatabaseContextIOOperator, TutorialD.Interpreter.Export.Base, TutorialD.Interpreter.Export.CSV, TutorialD.Interpreter.Import.Base, TutorialD.Interpreter.Import.BasicExamples, TutorialD.Interpreter.Import.CSV, TutorialD.Interpreter.Import.TutorialD, TutorialD.Interpreter.InformationOperator, TutorialD.Interpreter.RODatabaseContextOperator, TutorialD.Interpreter.RelationalExpr, TutorialD.Interpreter.TestBase, TutorialD.Interpreter.TransGraphRelationalOperator, TutorialD.Interpreter.TransactionGraphOperator, TutorialD.Interpreter.Types, TutorialD.Interpreter.SchemaOperator, TutorialD.Printer
319− main-is: TutorialD/Interpreter/DatabaseContextFunctionScript.hs
317+ main-is: test/TutorialD/Interpreter/DatabaseContextFunctionScript.hs
320318
321319Test-Suite test-relation
322320 import: commontest
323321 type: exitcode-stdio-1.0
324− main-is: Relation/Basic.hs
322+ main-is: test/Relation/Basic.hs
325323
326324Test-Suite test-static-optimizer
327325 import: commontest
328326 type: exitcode-stdio-1.0
329− main-is: Relation/StaticOptimizer.hs
327+ main-is: test/Relation/StaticOptimizer.hs
330328
331329Test-Suite test-transactiongraph-persist
332330 import: commontest
333331 type: exitcode-stdio-1.0
334− main-is: TransactionGraph/Persist.hs
332+ main-is: test/TransactionGraph/Persist.hs
335333 Other-Modules: TutorialD.Interpreter.Base, TutorialD.Interpreter.RelationalExpr, TutorialD.Interpreter.Types, TutorialD.Interpreter.DatabaseContextExpr, TutorialD.Interpreter.Import.BasicExamples, TutorialD.Printer
336334
337335Test-Suite test-relation-import-csv
338336 import: commontest
339337 type: exitcode-stdio-1.0
340− main-is: Relation/Import/CSV.hs
338+ main-is: test/Relation/Import/CSV.hs
341339
342340Test-Suite test-tutoriald-import-tutoriald
343341 import: commontest
344342 type: exitcode-stdio-1.0
345− main-is: TutorialD/Interpreter/Import/ImportTest.hs
343+ main-is: test/TutorialD/Interpreter/Import/TutorialD.hs
346344 Other-Modules: TutorialD.Interpreter.Base, TutorialD.Interpreter.Import.Base, TutorialD.Interpreter.Import.TutorialD, TutorialD.Interpreter.RelationalExpr, TutorialD.Interpreter.Types, TutorialD.Interpreter.DatabaseContextExpr, TutorialD.Interpreter.Import.BasicExamples, TutorialD.Printer
347345
348346Test-Suite test-relation-export-csv
349347 import: commontest
350348 type: exitcode-stdio-1.0
351− main-is: Relation/Export/CSV.hs
349+ main-is: test/Relation/Export/CSV.hs
352350
353351Test-Suite test-transactiongraph-merge
354352 import: commontest
355353 type: exitcode-stdio-1.0
356− main-is: TransactionGraph/Merge.hs
354+ main-is: test/TransactionGraph/Merge.hs
357355
358356
359357Test-Suite test-prettyprinter
360358 import: commontest
361359 type: exitcode-stdio-1.0
362− main-is: TutorialD/PrinterTest.hs
360+ main-is: test/TutorialD/Printer.hs
363361 Other-Modules: TutorialD.Printer, TutorialD.Interpreter.Base, TutorialD.Interpreter.RelationalExpr, TutorialD.Interpreter.Types
364362
365363benchmark bench
@@ -370,7 +368,7 @@ benchmark bench
370368Test-Suite test-server
371369 import: commontest
372370 type: exitcode-stdio-1.0
373− main-is: Server/Main.hs
371+ main-is: test/Server/Main.hs
374372
375373
376374Executable Example-SimpleClient
@@ -401,13 +399,6 @@ Executable Example-Hair
401399 Main-Is: examples/hair.hs
402400 GHC-Options: -Wall -threaded
403401
404−Executable Example-Plantfarm
405− Default-Language: Haskell2010
406− Default-Extensions: OverloadedStrings
407− Build-Depends: aeson, barbies, base, binary, containers, deepseq, hashable, project-m36, random, scotty, text, winery
408− Main-Is: examples/Plantfarm.hs
409− GHC-Options: -Wall -threaded
410−
411402Executable Example-CustomTupleable
412403 Default-Language: Haskell2010
413404 Default-Extensions: OverloadedStrings
@@ -428,12 +419,12 @@ Executable Example-DerivingCustomTupleable
428419Test-Suite test-scripts
429420 import: commontest
430421 type: exitcode-stdio-1.0
431− main-is: scripts.hs
422+ main-is: test/scripts.hs
432423 Other-Modules: TutorialD.Interpreter.Base, TutorialD.Interpreter.DatabaseContextExpr, TutorialD.Interpreter.Import.Base, TutorialD.Interpreter.Import.TutorialD, TutorialD.Interpreter.RelationalExpr, TutorialD.Interpreter.Types, TutorialD.Interpreter.Import.BasicExamples, TutorialD.Printer
433424
434425Executable project-m36-websocket-server
435426 Default-Language: Haskell2010
436− Build-Depends: base, aeson, path-pieces, either, conduit, http-api-data, template-haskell, websockets, aeson, optparse-applicative, project-m36, containers, bytestring, text, vector, uuid, megaparsec, haskeline, mtl, directory, base64-bytestring, random, MonadRandom, time, semigroups, attoparsec, parser-combinators, prettyprinter, network, modern-uri, http-conduit, base16-bytestring, http-types, cryptohash-sha256, wai, wai-websockets, warp, warp-tls
427+ Build-Depends: base, aeson, path-pieces, either, conduit, http-api-data, template-haskell, websockets, aeson, optparse-applicative, project-m36, containers, bytestring, text, vector, uuid, megaparsec, haskeline, mtl, directory, base64-bytestring, random, MonadRandom, time, semigroups, attoparsec, parser-combinators, prettyprinter, network
437428 Main-Is: ProjectM36/Server/WebSocket/websocket-server.hs
438429 Other-Modules: ProjectM36.Client.Json, ProjectM36.Server.RemoteCallTypes.Json, ProjectM36.Server.WebSocket, TutorialD.Interpreter, TutorialD.Interpreter.Base, TutorialD.Interpreter.DatabaseContextExpr, TutorialD.Interpreter.DatabaseContextIOOperator, TutorialD.Interpreter.Export.Base, TutorialD.Interpreter.Export.CSV, TutorialD.Interpreter.Import.Base, TutorialD.Interpreter.Import.BasicExamples, TutorialD.Interpreter.Import.CSV, TutorialD.Interpreter.Import.TutorialD, TutorialD.Interpreter.InformationOperator, TutorialD.Interpreter.RODatabaseContextOperator, TutorialD.Interpreter.RelationalExpr, TutorialD.Interpreter.TransactionGraphOperator, TutorialD.Interpreter.Types, TutorialD.Interpreter.TransGraphRelationalOperator, TutorialD.Interpreter.SchemaOperator, TutorialD.Printer
439430 GHC-Options: -Wall -threaded
@@ -443,46 +434,46 @@ Executable project-m36-websocket-server
443434Test-Suite test-websocket-server
444435 import: commontest
445436 type: exitcode-stdio-1.0
446− main-is: Server/WebSocket.hs
437+ main-is: test/Server/WebSocket.hs
447438 Other-Modules: TutorialD.Interpreter.Export.Base, TutorialD.Interpreter.Export.CSV, TutorialD.Interpreter.Import.BasicExamples, TutorialD.Interpreter.Import.CSV, TutorialD.Interpreter.InformationOperator, TutorialD.Interpreter.RODatabaseContextOperator, TutorialD.Interpreter.TransactionGraphOperator, ProjectM36.Client.Json, ProjectM36.Server.RemoteCallTypes.Json, ProjectM36.Server.WebSocket, TutorialD.Interpreter, TutorialD.Interpreter.Base, TutorialD.Interpreter.DatabaseContextExpr, TutorialD.Interpreter.Import.Base, TutorialD.Interpreter.Import.TutorialD, TutorialD.Interpreter.RelationalExpr, TutorialD.Interpreter.Types, TutorialD.Interpreter.DatabaseContextIOOperator, TutorialD.Interpreter.TransGraphRelationalOperator, TutorialD.Interpreter.SchemaOperator, TutorialD.Printer
448439
449440Test-Suite test-isomorphic-schemas
450441 import: commontest
451442 type: exitcode-stdio-1.0
452− main-is: IsomorphicSchema.hs
443+ main-is: test/IsomorphicSchema.hs
453444
454445Test-Suite test-atomable
455446 import: commontest
456447 type: exitcode-stdio-1.0
457− main-is: Relation/Atomable.hs
448+ main-is: test/Relation/Atomable.hs
458449 Other-Modules: TutorialD.Interpreter, TutorialD.Interpreter.Base, TutorialD.Interpreter.DatabaseContextExpr, TutorialD.Interpreter.DatabaseContextIOOperator, TutorialD.Interpreter.Export.Base, TutorialD.Interpreter.Export.CSV, TutorialD.Interpreter.Import.Base, TutorialD.Interpreter.Import.BasicExamples, TutorialD.Interpreter.Import.CSV, TutorialD.Interpreter.Import.TutorialD, TutorialD.Interpreter.InformationOperator, TutorialD.Interpreter.RODatabaseContextOperator, TutorialD.Interpreter.RelationalExpr, TutorialD.Interpreter.SchemaOperator, TutorialD.Interpreter.TestBase, TutorialD.Interpreter.TransGraphRelationalOperator, TutorialD.Interpreter.TransactionGraphOperator, TutorialD.Interpreter.Types, TutorialD.Printer
459450
460451Test-Suite test-multiprocess-access
461452 import: commontest
462453 type: exitcode-stdio-1.0
463− main-is: MultiProcessDatabaseAccess.hs
454+ main-is: test/MultiProcessDatabaseAccess.hs
464455
465456Test-Suite test-transactiongraph-automerge
466457 import: commontest
467458 type: exitcode-stdio-1.0
468− main-is: TransactionGraph/Automerge.hs
459+ main-is: test/TransactionGraph/Automerge.hs
469460 Other-Modules: TutorialD.Interpreter, TutorialD.Interpreter.Base, TutorialD.Interpreter.DatabaseContextExpr, TutorialD.Interpreter.DatabaseContextIOOperator, TutorialD.Interpreter.Export.Base, TutorialD.Interpreter.Export.CSV, TutorialD.Interpreter.Import.Base, TutorialD.Interpreter.Import.BasicExamples, TutorialD.Interpreter.Import.CSV, TutorialD.Interpreter.Import.TutorialD, TutorialD.Interpreter.InformationOperator, TutorialD.Interpreter.RODatabaseContextOperator, TutorialD.Interpreter.RelationalExpr, TutorialD.Interpreter.SchemaOperator, TutorialD.Interpreter.TestBase, TutorialD.Interpreter.TransGraphRelationalOperator, TutorialD.Interpreter.TransactionGraphOperator, TutorialD.Interpreter.Types, TutorialD.Printer
470461
471462Test-Suite test-tupleable
472463 import: commontest
473464 type: exitcode-stdio-1.0
474− main-is: Relation/Tupleable.hs
465+ main-is: test/Relation/Tupleable.hs
475466
476467Test-Suite test-client-simple
477468 import: commontest
478− Main-Is: Client/Simple.hs
469+ Main-Is: test/Client/Simple.hs
479470 type: exitcode-stdio-1.0
480471
481472-- test for file handle leaks
482473Executable handles
483474 Default-Language: Haskell2010
484475 Default-Extensions: OverloadedStrings
485− Build-Depends: base, HUnit, Cabal, containers, hashable, unordered-containers, mtl, vector, time, hashable-time, bytestring, uuid, stm, deepseq, deepseq-generics,parallel, cassava, attoparsec, gnuplot, directory, temporary, haskeline, megaparsec, text, base64-bytestring, data-interval, filepath, optparse-applicative, stm-containers, list-t, ghc, ghc-paths, transformers, project-m36, random, MonadRandom, semigroups, parser-combinators, prettyprinter, modern-uri, http-types, http-conduit, base16-bytestring, cryptohash-sha256
476+ Build-Depends: base, HUnit, Cabal, containers, hashable, unordered-containers, mtl, vector, time, hashable-time, bytestring, uuid, stm, deepseq, deepseq-generics,parallel, cassava, attoparsec, gnuplot, directory, temporary, haskeline, megaparsec, text, base64-bytestring, data-interval, filepath, optparse-applicative, stm-containers, list-t, ghc, ghc-paths, transformers, project-m36, random, MonadRandom, semigroups, parser-combinators, prettyprinter
486477 main-is: benchmark/Handles.hs
487478 Other-Modules: TutorialD.Interpreter,
488479 TutorialD.Interpreter.Base,
@@ -506,9 +497,9 @@ Executable handles
506497 HS-Source-Dirs: ./src/bin
507498 if flag(profiler)
508499 GHC-Prof-Options: -fprof-auto -rtsopts -threaded -Wall
509−
500+
510501Test-Suite test-dataframe
511502 import: commontest
512503 type: exitcode-stdio-1.0
513− Main-Is: DataFrame.hs
504+ Main-Is: test/DataFrame.hs
514505 Other-Modules: TutorialD.Interpreter, TutorialD.Interpreter.Base, TutorialD.Interpreter.DatabaseContextExpr, TutorialD.Interpreter.DatabaseContextIOOperator, TutorialD.Interpreter.Export.Base, TutorialD.Interpreter.Export.CSV, TutorialD.Interpreter.Import.Base, TutorialD.Interpreter.Import.BasicExamples, TutorialD.Interpreter.Import.CSV, TutorialD.Interpreter.Import.TutorialD, TutorialD.Interpreter.InformationOperator, TutorialD.Interpreter.RODatabaseContextOperator, TutorialD.Interpreter.RelationalExpr, TutorialD.Interpreter.SchemaOperator, TutorialD.Interpreter.TestBase, TutorialD.Interpreter.TransGraphRelationalOperator, TutorialD.Interpreter.TransactionGraphOperator, TutorialD.Interpreter.Types, TutorialD.Printer