Wire a dummy auth algebra together with the existing bank algebra using the machinery from Data types a la carte.
This PR is to get feedback on the approach before progressing to an actual implementation of auth. Currently the auth API is limited to incrementing an Integer stored in a TVar. Given the auth implementation is intended for testing only, it will likely keep its state in some data structure using STM, so this PoC is pretty representative.
@benkolera, please check the changes to Model.hs in case they make you sad.
Wire a dummy auth algebra together with the existing bank algebra using the machinery from Data types a la carte.
This PR is to get feedback on the approach before progressing to an actual implementation of auth. Currently the auth API is limited to incrementing an
Integer
stored in aTVar
. Given the auth implementation is intended for testing only, it will likely keep its state in some data structure using STM, so this PoC is pretty representative.@benkolera, please check the changes to
Model.hs
in case they make you sad.