You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi there! I'm super excited to get this working, however after following the readme, and getting to cabal build, this is the output.
[locknlol@LockBox EnableRazer]$ cabal build
Building EnableRazer-0.0.4...
Preprocessing executable 'EnableRazer' for EnableRazer-0.0.4...
[1 of 1] Compiling Main ( src/Main.hs, dist/build/EnableRazer/EnableRazer-tmp/Main.o )
src/Main.hs:56:3:
Couldn't match expected type ‘Integer
-> Integer -> BS.ByteString -> Timeout -> IO ()’
with actual type ‘IO ()’
The function ‘writeControlExact’ is applied to 8 arguments,
but its type ‘DeviceHandle -> ControlSetup -> WriteExactAction’
has only four
In a stmt of a 'do' block:
writeControlExact
devHndl Class ToInterface _SET_REPORT 768 2 cdata noTimeout
In the expression:
do { putStrLn "WRITING SET_REPORT";
writeControlExact
devHndl Class ToInterface _SET_REPORT 768 2 cdata noTimeout }
src/Main.hs:57:5:
Couldn't match expected type ‘ControlSetup’
with actual type ‘RequestType’
In the second argument of ‘writeControlExact’, namely ‘Class’
In a stmt of a 'do' block:
writeControlExact
devHndl Class ToInterface _SET_REPORT 768 2 cdata noTimeout
src/Main.hs:58:5:
Couldn't match expected type ‘BS.ByteString’
with actual type ‘Recipient’
In the third argument of ‘writeControlExact’, namely ‘ToInterface’
In a stmt of a 'do' block:
writeControlExact
devHndl Class ToInterface _SET_REPORT 768 2 cdata noTimeout
src/Main.hs:59:5:
Couldn't match type ‘GHC.Word.Word8’ with ‘Int’
Expected type: Timeout
Actual type: Request
In the fourth argument of ‘writeControlExact’, namely ‘_SET_REPORT’
In a stmt of a 'do' block:
writeControlExact
devHndl Class ToInterface _SET_REPORT 768 2 cdata noTimeout
[locknlol@LockBox EnableRazer]$
After following OvermindDL1's instructions here: #5
I receive this error upon build:
[locknlol@LockBox EnableRazer]$ cabal build
Building EnableRazer-0.0.4...
Preprocessing executable 'EnableRazer' for EnableRazer-0.0.4...
[1 of 1] Compiling Main ( src/Main.hs, dist/build/EnableRazer/EnableRazer-tmp/Main.o )
src/Main.hs:65:1:
Parse error: naked expression at top level
Perhaps you intended to use TemplateHaskell
The text was updated successfully, but these errors were encountered:
Hi there! I'm super excited to get this working, however after following the readme, and getting to cabal build, this is the output.
After following OvermindDL1's instructions here: #5
I receive this error upon build:
The text was updated successfully, but these errors were encountered: