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": "./",
"core": {
"dependencies": [
"aff",
"argonaut-codecs",
"argonaut-core",
"console",
"effect",
"ezfetch",
"maybe",
"node-net",
"node-streams",
"nullable",
"prelude",
"strings",
"transformers",
"tuples",
"url-immutable",
"web-streams"
{
"aff": ">=8.0.0 <9.0.0"
},
{
"argonaut-codecs": ">=9.1.0 <10.0.0"
},
{
"argonaut-core": ">=7.0.0 <8.0.0"
},
"arraybuffer-types",
"arrays",
"bifunctors",
{
"console": ">=6.1.0 <7.0.0"
},
"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": [
"aff",
@ -102,6 +147,7 @@
},
"test": {
"dependencies": [
"partial",
"spec",
"spec-node"
],

View File

@ -1,25 +1,39 @@
package:
name: axon
dependencies:
- aff
- argonaut-codecs
- argonaut-core
- console
- effect
- ezfetch
- maybe
- node-net
- node-streams
- nullable
- prelude
- strings
- transformers
- tuples
- url-immutable
- web-streams
- arraybuffer-types
- arrays
- bifunctors
- control
- either
- exceptions
- foldable-traversable
- integers
- newtype
- node-buffer
- ordered-collections
- refs
- typelevel-prelude
- aff: ">=8.0.0 <9.0.0"
- argonaut-codecs: ">=9.1.0 <10.0.0"
- 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:
main: Test.Main
dependencies:
- partial
- spec
- spec-node
workspace:

View File

@ -6,7 +6,7 @@ import Axon.Request (Request)
import Axon.Request as Request
import Axon.Request.Method (Method(..))
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 Data.Bifunctor (lmap)
import Data.Either (Either(..))