@@ -66,7 +66,7 @@ callEndpoint staticRoutes =
66 options :: [(ApiOffset, [[Var (Opaque (IORef Dynamic)) Symbolic]])]
66 options :: [(ApiOffset, [[Var (Opaque (IORef Dynamic)) Symbolic]])]
69− ( \(offset, argreps, _retType, _dynCall) -> (offset,) <$> do
69+ ( \(offset, (argreps, _retType, _dynCall)) -> (offset,) <$> do
70 mapM fillableWith argreps
70 mapM fillableWith argreps
72 staticRoutes
72 staticRoutes
@@ -82,7 +82,7 @@ callEndpoint staticRoutes =
82 execute (Op (ApiOffset offset) args) = do
82 execute (Op (ApiOffset offset) args) = do
83 fmap Opaque . liftIO $ do
83 fmap Opaque . liftIO $ do
84 realArgs <- mapM (readIORef . opaque) args
84 realArgs <- mapM (readIORef . opaque) args
85− let (_offset, _staticArgs, _ret, endpoint) = staticRoutes !! offset
85+ let (_offset, (_staticArgs, _ret, endpoint)) = staticRoutes !! offset
86 -- now, magic happens: we apply some dynamic arguments to a dynamic
86 -- now, magic happens: we apply some dynamic arguments to a dynamic
87 -- function and hopefully something useful pops out the end.
87 -- function and hopefully something useful pops out the end.
88 func = foldr (\arg curr -> flip dynApply arg =<< curr) (Just endpoint) realArgs
88 func = foldr (\arg curr -> flip dynApply arg =<< curr) (Just endpoint) realArgs
@@ -110,7 +110,7 @@ callEndpoint staticRoutes =
110 (Op (ApiOffset offset) _args) ->
110 (Op (ApiOffset offset) _args) ->
112 { stateRefs =
112 { stateRefs =
113− let (_, _, tr, _) = staticRoutes !! offset
113+ let (_, (_, tr, _)) = staticRoutes !! offset
114 in Map.insertWith
114 in Map.insertWith