snaplet-mysql-simple 0.2.0.2 → 0.2.0.3
raw patch · 2 files changed
+10/−7 lines, 2 files
Files
snaplet-mysql-simple.cabal view
@@ -1,5 +1,5 @@ name: snaplet-mysql-simple-version: 0.2.0.2+version: 0.2.0.3 synopsis: mysql-simple snaplet for the Snap Framework description: This snaplet contains support for using the MariaDB and MySQL database with a Snap Framework application via the mysql-simple
src/Snap/Snaplet/MysqlSimple.hs view
@@ -175,12 +175,15 @@ ------------------------------------------------------------------------------ -- | Orphan Lenses for ConnectInfo -- Not exported, only used for 'getConnectionInfo'.-$(makeLensesWith (LensRules Just Just (const Nothing)- (S.fromList [SimpleLenses, GenerateSignatures]))- ''M.ConnectInfo)-$(makeLensesWith (LensRules Just Just (const Nothing)- (S.fromList [SimpleLenses, GenerateSignatures]))- ''MB.SSLInfo)+$(makeLensesFor+ (map (\x -> (x,x))+ [ "connectHost", "connectPort", "connectUser", "connectPassword"+ , "connectDatabase", "connectOptions", "connectPath", "connectSSL"])+ ''M.ConnectInfo)+$(makeLensesFor+ (map (\x -> (x,x))+ ["sslKey", "sslCert", "sslCA", "sslCAPath", "sslCiphers"])+ ''MB.SSLInfo) ------------------------------------------------------------------------------ -- | Produce a connection info from a config