Advertisement
Guest User

Untitled

a guest
Feb 16th, 2019
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. {-# LANGUAGE OverloadedStrings #-}
  2. import Control.Applicative
  3. import Database.SQLite.Simple
  4. import Database.SQLite.Simple.FromRow
  5.  
  6. data TestField = TestField Int String deriving (Show)
  7.  
  8. instance FromRow TestField where
  9.   fromRow = TestField <$> field <*> field
  10.  
  11. main :: IO()-> return()
  12. main = do
  13.   conn <- open "db1.sqlite"
  14.   execute conn "DROP TABLE tabela"
  15.   close conn
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement