Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
H
haskell-pgmq
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gargantext
haskell-pgmq
Commits
cd93101b
Verified
Commit
cd93101b
authored
Oct 03, 2024
by
Przemyslaw Kaminski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[th] fix for file-embed which didn't work when this lib was used as a dependency
parent
caca8bce
Pipeline
#6740
passed with stages
in 16 minutes and 14 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
10 deletions
+5
-10
cabal.project
cabal.project
+0
-5
haskell-pgmq.cabal
haskell-pgmq.cabal
+2
-1
Schema.hs
src/Database/PGMQ/Schema.hs
+3
-4
No files found.
cabal.project
View file @
cd93101b
...
@@ -5,9 +5,4 @@ with-compiler: ghc-9.4.7
...
@@ -5,9 +5,4 @@ with-compiler: ghc-9.4.7
packages:
packages:
./
./
source-repository-package
type: git
location: https://github.com/snoyberg/file-embed/
tag: 001cdedeacad9f38c24f2439c6b9c43c46363cc9
tests: true
tests: true
haskell-pgmq.cabal
View file @
cd93101b
...
@@ -77,10 +77,11 @@ library
...
@@ -77,10 +77,11 @@ library
build-depends: base ^>=4.17.2.0
build-depends: base ^>=4.17.2.0
, aeson >= 1.4 && < 2.3
, aeson >= 1.4 && < 2.3
, bytestring >= 0.11 && < 0.13
, bytestring >= 0.11 && < 0.13
, file-embed >= 0.0.16 && < 0.1
, postgresql-simple >= 0.6 && < 0.8
, postgresql-simple >= 0.6 && < 0.8
, safe >= 0.3 && < 0.4
, safe >= 0.3 && < 0.4
, template-haskell >= 2.19.0.0 && < 2.20
, text >= 1.2 && < 2.2
, text >= 1.2 && < 2.2
, th-utilities >= 0.2.5.0 && < 0.3
, time >= 1.10 && < 1.15
, time >= 1.10 && < 1.15
, units >= 2.4 && < 2.5
, units >= 2.4 && < 2.5
...
...
src/Database/PGMQ/Schema.hs
View file @
cd93101b
...
@@ -2,10 +2,9 @@
...
@@ -2,10 +2,9 @@
module
Database.PGMQ.Schema
where
module
Database.PGMQ.Schema
where
import
Data.FileEmbed
(
embedFileRelative
)
import
Language.Haskell.TH.Syntax
(
lift
)
import
Data.Text
qualified
as
T
import
TH.RelativePaths
(
qReadFileString
)
import
Data.Text.Encoding
qualified
as
T
pgmqSchema
::
String
pgmqSchema
::
String
pgmqSchema
=
T
.
unpack
.
T
.
decodeUtf8
$
$
(
embedFileRelative
"sql/pgmq.sql"
)
pgmqSchema
=
$
(
qReadFileString
"sql/pgmq.sql"
>>=
lift
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment