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
ce5531ff
Commit
ce5531ff
authored
2 years ago
by
Jens Nolte
Browse files
Options
Downloads
Patches
Plain Diff
Rename Fixed to WlFixed
parent
899979e2
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
src/Quasar/Wayland/Protocol.hs
+1
-1
1 addition, 1 deletion
src/Quasar/Wayland/Protocol.hs
src/Quasar/Wayland/Protocol/Core.hs
+6
-6
6 additions, 6 deletions
src/Quasar/Wayland/Protocol/Core.hs
src/Quasar/Wayland/Protocol/TH.hs
+1
-1
1 addition, 1 deletion
src/Quasar/Wayland/Protocol/TH.hs
with
8 additions
and
8 deletions
src/Quasar/Wayland/Protocol.hs
+
1
−
1
View file @
ce5531ff
...
@@ -10,7 +10,7 @@ module Quasar.Wayland.Protocol (
...
@@ -10,7 +10,7 @@ module Quasar.Wayland.Protocol (
getMessageHandler
,
getMessageHandler
,
-- ** Wayland types
-- ** Wayland types
Fixed
(
..
),
Wl
Fixed
(
..
),
WlString
(
..
),
WlString
(
..
),
toString
,
toString
,
...
...
This diff is collapsed.
Click to expand it.
src/Quasar/Wayland/Protocol/Core.hs
+
6
−
6
View file @
ce5531ff
...
@@ -6,7 +6,7 @@ module Quasar.Wayland.Protocol.Core (
...
@@ -6,7 +6,7 @@ module Quasar.Wayland.Protocol.Core (
NewId
,
NewId
,
GenericNewId
,
GenericNewId
,
Opcode
,
Opcode
,
Fixed
(
..
),
Wl
Fixed
(
..
),
WlString
(
..
),
WlString
(
..
),
toString
,
toString
,
fromString
,
fromString
,
...
@@ -115,10 +115,10 @@ data GenericNewId = GenericNewId WlString Version Word32
...
@@ -115,10 +115,10 @@ data GenericNewId = GenericNewId WlString Version Word32
-- | Signed 24.8 decimal numbers.
-- | Signed 24.8 decimal numbers.
newtype
Fixed
=
Fixed
Word32
newtype
Wl
Fixed
=
Wl
Fixed
Word32
deriving
newtype
Eq
deriving
newtype
Eq
instance
Show
Fixed
where
instance
Show
Wl
Fixed
where
show
x
=
"[fixed "
<>
show
x
<>
"]"
show
x
=
"[fixed "
<>
show
x
<>
"]"
...
@@ -162,9 +162,9 @@ instance WireFormat Word32 where
...
@@ -162,9 +162,9 @@ instance WireFormat Word32 where
getArgument
=
pure
<$>
getWord32host
getArgument
=
pure
<$>
getWord32host
showArgument
=
show
showArgument
=
show
instance
WireFormat
Fixed
where
instance
WireFormat
Wl
Fixed
where
putArgument
(
Fixed
repr
)
=
pure
$
MessagePart
(
putWord32host
repr
)
4
mempty
putArgument
(
Wl
Fixed
repr
)
=
pure
$
MessagePart
(
putWord32host
repr
)
4
mempty
getArgument
=
pure
.
Fixed
<$>
getWord32host
getArgument
=
pure
.
Wl
Fixed
<$>
getWord32host
showArgument
=
show
showArgument
=
show
instance
WireFormat
WlString
where
instance
WireFormat
WlString
where
...
...
This diff is collapsed.
Click to expand it.
src/Quasar/Wayland/Protocol/TH.hs
+
1
−
1
View file @
ce5531ff
...
@@ -498,7 +498,7 @@ argumentWireType argSpec = liftArgumentWireType argSpec.argType
...
@@ -498,7 +498,7 @@ argumentWireType argSpec = liftArgumentWireType argSpec.argType
liftArgumentWireType
::
ArgumentType
->
Q
Type
liftArgumentWireType
::
ArgumentType
->
Q
Type
liftArgumentWireType
IntArgument
=
[
t
|
Int32
|]
liftArgumentWireType
IntArgument
=
[
t
|
Int32
|]
liftArgumentWireType
UIntArgument
=
[
t
|
Word32
|]
liftArgumentWireType
UIntArgument
=
[
t
|
Word32
|]
liftArgumentWireType
FixedArgument
=
[
t
|
Fixed
|]
liftArgumentWireType
FixedArgument
=
[
t
|
Wl
Fixed
|]
liftArgumentWireType
StringArgument
=
[
t
|
WlString
|]
liftArgumentWireType
StringArgument
=
[
t
|
WlString
|]
liftArgumentWireType
ArrayArgument
=
[
t
|
BS.ByteString
|]
liftArgumentWireType
ArrayArgument
=
[
t
|
BS.ByteString
|]
liftArgumentWireType
(
ObjectArgument
iName
)
=
[
t
|
ObjectId $(litT (strTyLit iName))
|]
liftArgumentWireType
(
ObjectArgument
iName
)
=
[
t
|
ObjectId $(litT (strTyLit iName))
|]
...
...
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