Skip to content

Instantly share code, notes, and snippets.

@thomasjm
Created April 8, 2025 03:10
Show Gist options
  • Save thomasjm/8ccc2ee06dcb9f66bcbe178fb6f9fb99 to your computer and use it in GitHub Desktop.
Save thomasjm/8ccc2ee06dcb9f66bcbe178fb6f9fb99 to your computer and use it in GitHub Desktop.
@nix { "action": "setPhase", "phase": "buildPhase" }
Preprocessing library for aeson-typescript-0.6.4.0..
Building library for aeson-typescript-0.6.4.0..
src/Data/Aeson/TypeScript/Instances.hs:4:14: warning: [GHC-53692] [-Wdeprecated-flags]
-XOverlappingInstances is deprecated: instead use per-instance pragmas OVERLAPPING/OVERLAPPABLE/OVERLAPS
|
4 | {-# LANGUAGE OverlappingInstances #-}
| ^^^^^^^^^^^^^^^^^^^^
[ 1 of 12] Compiling Data.Aeson.TypeScript.LegalName ( src/Data/Aeson/TypeScript/LegalName.hs, dist/build/Data/Aeson/TypeScript/LegalName.o )
[ 2 of 12] Compiling Data.Aeson.TypeScript.Types ( src/Data/Aeson/TypeScript/Types.hs, dist/build/Data/Aeson/TypeScript/Types.o )
[ 3 of 12] Compiling Data.Aeson.TypeScript.TypeManipulation ( src/Data/Aeson/TypeScript/TypeManipulation.hs, dist/build/Data/Aeson/TypeScript/TypeManipulation.o )
---> Starting iserv-proxy-interpreter.exe on port 7158
[ 4 of 12] Compiling Data.Aeson.TypeScript.Internal ( src/Data/Aeson/TypeScript/Internal.hs, dist/build/Data/Aeson/TypeScript/Internal.o )
[ 5 of 12] Compiling Data.Aeson.TypeScript.Instances ( src/Data/Aeson/TypeScript/Instances.hs, dist/build/Data/Aeson/TypeScript/Instances.o )
To re-use the same wine-prefix and remote-iserv, set the following environment variables:
export WINEPREFIX=/build/tmp.rFdPYdO1Ra
export REMOTE_ISERV=/build/tmp.cKaGJshAIG
---| iserv-proxy-interpreter.exe should have started on 7158
004c:err:systray:initialize_systray Could not create tray window
0090:err:setupapi:SetupDefaultQueueCallbackW copy error 1812 L"@C:\\windows\\system32\\drivers\\wineusb.sys,-1" -> L"C:\\windows\\inf\\wineusb.inf"
wine: failed to open L"C:\\windows\\syswow64\\rundll32.exe": c0000135
wine: configuration in L"/build" has been updated.
Listening on port 7158
iserv-proxy: getBin: Unknown encoding for constructor
iserv-proxy-interpreter.exe:<socket:180>:hPutBuf:invalidargument(Invalid a
rgument)
src/Data/Aeson/TypeScript/Instances.hs:190:25: error: [GHC-87897]
• Exception when trying to run compile-time code:
External interpreter terminated (1)
Code: Language.Haskell.TH.Quote.quoteExp
i "{[k: string]: #{getTypeScriptType (Proxy :: Proxy a)}}"
• In the quasi-quotation:
[i|{[k: string]: #{getTypeScriptType (Proxy :: Proxy a)}}|]
|
190 | getTypeScriptType _ = [i|{[k: string]: #{getTypeScriptType (Proxy :: Proxy a)}}|]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[ 8 of 12] Compiling Data.Aeson.TypeScript.Formatting ( src/Data/Aeson/TypeScript/Formatting.hs, dist/build/Data/Aeson/TypeScript/Formatting.o )
src/Data/Aeson/TypeScript/Formatting.hs:29:15: error: [GHC-87897]
• Exception when trying to run compile-time code:
{handle: <file descriptor: 25>}: GHCi.Message.remoteCall: end of file
Code: Language.Haskell.TH.Quote.quoteExp
i
"#{exportPrefix exportMode}enum #{typeNameModifier name} { #{alternativesEnum} }"
• In the quasi-quotation:
[i|#{exportPrefix exportMode}enum #{typeNameModifier name} { #{alternativesEnum} }|]
|
29 | Enum -> [i|#{exportPrefix exportMode}enum #{typeNameModifier name} { #{alternativesEnum} }|]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[12 of 12] Compiling Paths_aeson_typescript ( dist/build/autogen/Paths_aeson_typescript.hs, dist/build/Paths_aeson_typescript.o )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment