Skip to content

Commit ea634cf

Browse files
committed
Moved the helper to the main project, since it didn't fit here
1 parent cff0a20 commit ea634cf

File tree

2 files changed

+1
-10
lines changed

2 files changed

+1
-10
lines changed

generated-docs/md/Apiary.Client.Response.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,5 @@
11
## Module Apiary.Client.Response
22

3-
#### `extract`
4-
5-
``` purescript
6-
extract :: forall status r a. IsSymbol status => ResponseStatus status => Cons status a () r => Variant r -> a
7-
```
8-
93
#### `DecodeResponse`
104

115
``` purescript

src/Apiary/Client/Response.purs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,13 @@ import Control.Monad.Error.Class (throwError)
1010
import Control.Monad.Except (Except, withExcept)
1111
import Data.Maybe (isJust)
1212
import Data.Symbol (class IsSymbol)
13-
import Data.Variant (SProxy(..), Variant, case_, expand, inj, on, prj)
13+
import Data.Variant (SProxy(..), Variant, expand, inj, prj)
1414
import Partial.Unsafe (unsafeCrashWith)
1515
import Prim.Row (class Cons, class Union)
1616
import Prim.RowList (class RowToList, kind RowList, Cons, Nil)
1717
import Type.Data.RowList (RLProxy(..))
1818
import Type.Proxy (Proxy(..))
1919

20-
extract :: forall status r a. IsSymbol status => ResponseStatus status => Cons status a () r => Variant r -> a
21-
extract = case_ # on (SProxy :: _ status) identity
22-
2320
class DecodeResponse rep response | rep -> response where
2421
decodeResponse :: forall proxy. proxy rep -> Response -> Except (Request -> Error) response
2522

0 commit comments

Comments
 (0)