-
mssql-simple : SQL Server client library implemented in Haskell
https://github.com/mitsuji/mssql-simple -
ms-tds : TDS Protocol implemented in Haskell
https://github.com/mitsuji/ms-tds
Download and install stack.
Setup example database by using scripts in sql directory.
-
Setup some kind of SQL Server environment.
Using docker image would be a convinient chose. -
Execute sql/00_setup_Database.sql on the master database.
-
Execute sql/01_create_Table.sql on the mss-test database.
-
Execute sql/02_create_SP.sql on the mss-test database.
-
Execute sql/03_insert.sql on the mss-test database.
Run example with REPL like below.
$ stack repl
*Main> :main