Advertisement
pedroaaaaaaaa

haskell error

Feb 16th, 2019
272
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.  
  12. main :: IO()
  13. main = do
  14.   conn <- open "db1.sqlite"
  15.   execute conn "DROP TABLE tabela"
  16.   close conn
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement