AR
bracket createInternalState closeInternalState $ \st -> runInternalState doStuff st
Щас попробую :)
Size: a a a
AR
bracket createInternalState closeInternalState $ \st -> runInternalState doStuff st
AR
RecordWildCards использовать :(AR
type FactoringAPI =
"x" :> Capture "x" Int :>
( Capture "y" Int :> Get '[JSON] Int
:<|> Get '[JSON] Int
)
type FactoringAPI' =
"x" :> Capture "x" Int :> Capture "y" Int :> Get '[JSON] Int :<|>
"x" :> Capture "y" Int :> Get '[JSON] Int
AR
• Couldn't match type ‘(Int -> Int -> ReaderT Bool Handler Int)
:<|> (Int -> ReaderT Bool Handler Int)’
with ‘Int
-> (Int -> ReaderT Bool Handler Int) :<|> ReaderT Bool Handler Int’
AR
AR
a :: Int -> Int -> ReaderT Bool Handler Int
a = undefined
b :: Int -> ReaderT Bool Handler Int
b = undefined
server2 :: ServerT FactoringAPI Res
server2 = a :<|> b
KV
KV
AR
KV
KV
AR
VS
VS
Capture в один Capture?AV
AT
AV
AT
MK
MK