Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Q
quasar-wayland
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jens Nolte
quasar-wayland
Commits
556d5430
Commit
556d5430
authored
3 years ago
by
Jens Nolte
Browse files
Options
Downloads
Patches
Plain Diff
Add example application
parent
6a60ce38
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
example/Main.hs
+11
-0
11 additions, 0 deletions
example/Main.hs
ghcid
+3
-3
3 additions, 3 deletions
ghcid
quasar-wayland.cabal
+12
-0
12 additions, 0 deletions
quasar-wayland.cabal
with
26 additions
and
3 deletions
example/Main.hs
0 → 100644
+
11
−
0
View file @
556d5430
module
Main
(
main
)
where
import
Quasar.Prelude
import
Quasar.ResourceManager
import
Quasar.Wayland.Client
main
::
IO
()
main
=
withResourceManagerM
do
traceIO
"Connecting"
client
<-
connectWaylandClient
traceIO
"Connected"
This diff is collapsed.
Click to expand it.
ghcid
+
3
−
3
View file @
556d5430
...
...
@@ -3,14 +3,14 @@
print
-P
%F
{
yellow
}
Cleaning repository%f
nix develop
-c
cabal clean
(
git ls-files
test
;
git ls-files
'*.cabal'
;
git ls-files
'flake.*'
)
|
\
(
git ls-files
test
example
;
git ls-files
'*.cabal'
;
git ls-files
'flake.*'
)
|
\
entr
-r
\
nix develop
-c
\
ghcid
\
--warnings
\
"--command=cabal repl lib:quasar-wayland"
\
"--test=:!
\
cabal test --test-show-details=direct --ghc-option -fdiagnostics-color=always &&
\
cabal
build
--ghc-option -fdiagnostics-color=always &&
\
cabal test
--disable-optimisation --enable-debug-info=2
--test-show-details=direct --ghc-option -fdiagnostics-color=always &&
\
cabal
run --disable-optimisation --enable-debug-info=2
--ghc-option -fdiagnostics-color=always
quasar-wayland-example
&&
\
zsh -c 'print -P %F{green}Build and tests passed%f'
\
"
This diff is collapsed.
Click to expand it.
quasar-wayland.cabal
+
12
−
0
View file @
556d5430
...
...
@@ -106,6 +106,18 @@ library
hs-source-dirs:
src
executable quasar-wayland-example
import: shared-executable-properties
build-depends:
quasar,
quasar-wayland,
-- required for record-dot-preprocessor
record-dot-preprocessor,
record-hasfield,
main-is: Main.hs
hs-source-dirs:
example
test-suite quasar-wayland-test
import: shared-executable-properties
type: exitcode-stdio-1.0
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment