module Helpers.Statements.SelectProvidedInt8 whereimport Hasql.Decoders qualified as Decodersimport Hasql.Encoders qualified as Encodersimport Hasql.Statement qualified as Statementimport Helpers.Dsls.Statementimport Preludedata SelectProvidedInt8 = SelectProvidedInt8 { value :: Int64 }type SelectProvidedInt8Result = Int64instance StatementModule SelectProvidedInt8 SelectProvidedInt8Result where statement = Statement.preparable "select $1" (value >$< Encoders.param (Encoders.nonNullable Encoders.int8)) (Decoders.singleRow (Decoders.column (Decoders.nonNullable Decoders.int8)))