philonous / d-bus Goto Github PK
View Code? Open in Web Editor NEWstrongly typed dbus client library
License: MIT License
strongly typed dbus client library
License: MIT License
Preprocessing executable 'dbus-introspect' for d-bus-0.1.3.4...
[1 of 1] Compiling Main ( dbus-introspect/Main.hs, dist/dist-sandbox-6b08ff11/build/dbus-introspect/dbus-introspect-tmp/Main.o )
dbus-introspect/Main.hs:23:31: Not in scope: ‘<$>’
cabal: Error: some packages failed to install:
d-bus-0.1.3.4 failed during the building phase. The exception was:
ExitFailure 1
The documentation for mkProperty
states:
Create a property from a getter and a setter. It will emit a PropertyChanged signal when the setter is called. To
change this behaviour modify the propertyEmitsChangedSignal field
But the code doesn't seem to call propertyChanged
or otherwise emit the signal (and as far as I can tell from my application, indeed this isn't emitted).
This affects mkTVarProperty
too, which uses mkProperty
.
Hackage has version 0.1.3.4, while the version in the Cabal file is 0.1.3.3.
Prevents problems like in #13
The Cabal file references a dbus-introspect executable in a directory with the same name. However, that directory doesn't exist in HEAD on master.
The documentation fails to build for the latest version on Hackage.
Preprocessing library d-bus-0.1.7...
[ 1 of 18] Compiling DBus.Auth ( src/DBus/Auth.hs, dist/build/DBus/Auth.o )
[ 2 of 18] Compiling DBus.Types ( src/DBus/Types.hs, dist/build/DBus/Types.o )
[ 3 of 18] Compiling DBus.TH ( src/DBus/TH.hs, dist/build/DBus/TH.o )
[ 4 of 18] Compiling DBus.Signature ( src/DBus/Signature.hs, dist/build/DBus/Signature.o )
[ 5 of 18] Compiling DBus.Representable ( src/DBus/Representable.hs, dist/build/DBus/Representable.o )
[ 6 of 18] Compiling DBus.Method ( src/DBus/Method.hs, dist/build/DBus/Method.o )
src/DBus/Method.hs:30:10: error:
• Type indexes must match class instance head
Expected: ArgTypes (IO (DBusArguments t))
Actual: ArgTypes (IO (DBusArguments ts))
• In the type instance declaration for ‘ArgTypes’
In the instance declaration for ‘IsMethod (IO (DBusArguments t))’
|
30 | type ArgTypes (IO (DBusArguments ts)) = '[]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
src/DBus/Method.hs:31:10: error:
• Type indexes must match class instance head
Expected: ResultType (IO (DBusArguments t))
Actual: ResultType (IO (DBusArguments ts))
• In the type instance declaration for ‘ResultType’
In the instance declaration for ‘IsMethod (IO (DBusArguments t))’
|
31 | type ResultType (IO (DBusArguments ts)) = ts
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
src/DBus/Method.hs:35:10: error:
• Type indexes must match class instance head
Expected: ArgTypes (MethodHandlerT IO (DBusArguments t))
Actual: ArgTypes (MethodHandlerT IO (DBusArguments ts))
• In the type instance declaration for ‘ArgTypes’
In the instance declaration for
‘IsMethod (MethodHandlerT IO (DBusArguments t))’
|
35 | type ArgTypes (MethodHandlerT IO (DBusArguments ts)) = '[]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
src/DBus/Method.hs:36:10: error:
• Type indexes must match class instance head
Expected: ResultType (MethodHandlerT IO (DBusArguments t))
Actual: ResultType (MethodHandlerT IO (DBusArguments ts))
• In the type instance declaration for ‘ResultType’
In the instance declaration for
‘IsMethod (MethodHandlerT IO (DBusArguments t))’
|
36 | type ResultType (MethodHandlerT IO (DBusArguments ts)) = ts
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
cabal: Leaving directory '/tmp/cabal-tmp-16539/d-bus-0.1.7'
Failed to install d-bus-0.1.7
Current API does not have an explicit close for a DBusConnection.
Closing a DBusConnection should gracefully end all signal and property change registrations / handlers as well as the cleanup of internal resources.
The introspection format we support is very strict. We should allow additional elements and attributes.
The last 5 commits with fixes required on recent versions of GHC have not been released on hackage. I think a new release should be uploaded.
Maybe it would be convenient to wait until #23 has been merged to avoid the need of an extra release after such PR has been merged.
The server will close the connection, leading to unexpected errors.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.