This commit is contained in:
Orion Kindel 2024-12-01 17:12:15 -06:00
parent 3c4f732f2c
commit fcf5709823
Signed by untrusted user who does not match committer: orion
GPG Key ID: 6D4165AE4C928719
3 changed files with 93 additions and 33 deletions

View File

@ -5,22 +5,67 @@
"path": "./", "path": "./",
"core": { "core": {
"dependencies": [ "dependencies": [
"aff", {
"argonaut-codecs", "aff": ">=8.0.0 <9.0.0"
"argonaut-core", },
"console", {
"effect", "argonaut-codecs": ">=9.1.0 <10.0.0"
"ezfetch", },
"maybe", {
"node-net", "argonaut-core": ">=7.0.0 <8.0.0"
"node-streams", },
"nullable", "arraybuffer-types",
"prelude", "arrays",
"strings", "bifunctors",
"transformers", {
"tuples", "console": ">=6.1.0 <7.0.0"
"url-immutable", },
"web-streams" "control",
{
"effect": ">=4.0.0 <5.0.0"
},
"either",
"exceptions",
{
"ezfetch": ">=1.1.0 <2.0.0"
},
"foldable-traversable",
"integers",
{
"maybe": ">=6.0.0 <7.0.0"
},
"newtype",
"node-buffer",
{
"node-net": ">=5.1.0 <6.0.0"
},
{
"node-streams": ">=9.0.0 <10.0.0"
},
{
"nullable": ">=6.0.0 <7.0.0"
},
"ordered-collections",
{
"prelude": ">=6.0.1 <7.0.0"
},
"refs",
{
"strings": ">=6.0.1 <7.0.0"
},
{
"transformers": ">=6.1.0 <7.0.0"
},
{
"tuples": ">=7.0.0 <8.0.0"
},
"typelevel-prelude",
{
"url-immutable": ">=1.0.0 <2.0.0"
},
{
"web-streams": ">=4.0.0 <5.0.0"
}
], ],
"build_plan": [ "build_plan": [
"aff", "aff",
@ -102,6 +147,7 @@
}, },
"test": { "test": {
"dependencies": [ "dependencies": [
"partial",
"spec", "spec",
"spec-node" "spec-node"
], ],

View File

@ -1,25 +1,39 @@
package: package:
name: axon name: axon
dependencies: dependencies:
- aff - arraybuffer-types
- argonaut-codecs - arrays
- argonaut-core - bifunctors
- console - control
- effect - either
- ezfetch - exceptions
- maybe - foldable-traversable
- node-net - integers
- node-streams - newtype
- nullable - node-buffer
- prelude - ordered-collections
- strings - refs
- transformers - typelevel-prelude
- tuples - aff: ">=8.0.0 <9.0.0"
- url-immutable - argonaut-codecs: ">=9.1.0 <10.0.0"
- web-streams - argonaut-core: ">=7.0.0 <8.0.0"
- console: ">=6.1.0 <7.0.0"
- effect: ">=4.0.0 <5.0.0"
- ezfetch: ">=1.1.0 <2.0.0"
- maybe: ">=6.0.0 <7.0.0"
- node-net: ">=5.1.0 <6.0.0"
- node-streams: ">=9.0.0 <10.0.0"
- nullable: ">=6.0.0 <7.0.0"
- prelude: ">=6.0.1 <7.0.0"
- strings: ">=6.0.1 <7.0.0"
- transformers: ">=6.1.0 <7.0.0"
- tuples: ">=7.0.0 <8.0.0"
- url-immutable: ">=1.0.0 <2.0.0"
- web-streams: ">=4.0.0 <5.0.0"
test: test:
main: Test.Main main: Test.Main
dependencies: dependencies:
- partial
- spec - spec
- spec-node - spec-node
workspace: workspace:

View File

@ -6,7 +6,7 @@ import Axon.Request (Request)
import Axon.Request as Request import Axon.Request as Request
import Axon.Request.Method (Method(..)) import Axon.Request.Method (Method(..))
import Axon.Request.Parts.Class (Json(..), Patch(..), Path(..), Post(..), extractRequestParts) import Axon.Request.Parts.Class (Json(..), Patch(..), Path(..), Post(..), extractRequestParts)
import Axon.Request.Parts.Path (type (...), type (/), IgnoreRest) import Axon.Request.Parts.Path (type (/), IgnoreRest)
import Control.Monad.Error.Class (liftEither, liftMaybe) import Control.Monad.Error.Class (liftEither, liftMaybe)
import Data.Bifunctor (lmap) import Data.Bifunctor (lmap)
import Data.Either (Either(..)) import Data.Either (Either(..))