Skip to content

Instantly share code, notes, and snippets.

@asheshambasta
Created February 4, 2018 11:03
Show Gist options
  • Save asheshambasta/a72b156428a3dfb4bfe727de8a0b88f1 to your computer and use it in GitHub Desktop.
Save asheshambasta/a72b156428a3dfb4bfe727de8a0b88f1 to your computer and use it in GitHub Desktop.
error during `stack install gtk`
er.hs, .stack-work/dist/x86_64-osx/Cabal-1.24.2.0/build/Graphics/UI/Gtk/Special/Ruler.o )
[ 39 of 209] Compiling Graphics.UI.Gtk.Gdk.DisplayManager ( .stack-work/dist/x86_64-osx/Cabal-1.24.2.0/build/Graphics/UI/Gtk/Gdk/DisplayManager.hs, .stack-work/dist/x86_64-osx/Cabal-1.24.2.0/build/Graphics/UI/Gtk/Gdk/DisplayManager.o )
[ 40 of 209] Compiling Graphics.UI.Gtk.Entry.EntryBuffer ( .stack-work/dist/x86_64-osx/Cabal-1.24.2.0/build/Graphics/UI/Gtk/Entry/EntryBuffer.hs, .stack-work/dist/x86_64-osx/Cabal-1.24.2.0/build/Graphics/UI/Gtk/Entry/EntryBuffer.o )
[ 41 of 209] Compiling Graphics.UI.Gtk.Entry.Editable ( .stack-work/dist/x86_64-osx/Cabal-1.24.2.0/build/Graphics/UI/Gtk/Entry/Editable.hs, .stack-work/dist/x86_64-osx/Cabal-1.24.2.0/build/Graphics/UI/Gtk/Entry/Editable.o )
[ 42 of 209] Compiling Graphics.UI.Gtk.Embedding.Types ( .stack-work/dist/x86_64-osx/Cabal-1.24.2.0/build/Graphics/UI/Gtk/Embedding/Types.hs, .stack-work/dist/x86_64-osx/Cabal-1.24.2.0/build/Graphics/UI/Gtk/Embedding/Types.o )
[ 43 of 209] Compiling Graphics.UI.Gtk.Embedding.Embedding ( .stack-work/dist/x86_64-osx/Cabal-1.24.2.0/build/Graphics/UI/Gtk/Embedding/Embedding.hs, .stack-work/dist/x86_64-osx/Cabal-1.24.2.0/build/Graphics/UI/Gtk/Embedding/Embedding.o )
[ 44 of 209] Compiling Graphics.UI.Gtk.Builder ( .stack-work/dist/x86_64-osx/Cabal-1.24.2.0/build/Graphics/UI/Gtk/Builder.hs, .stack-work/dist/x86_64-osx/Cabal-1.24.2.0/build/Graphics/UI/Gtk/Builder.o )
[ 45 of 209] Compiling Graphics.UI.Gtk.ActionMenuToolbar.RecentAction ( .stack-work/dist/x86_64-osx/Cabal-1.24.2.0/build/Graphics/UI/Gtk/ActionMenuToolbar/RecentAction.hs, .stack-work/dist/x86_64-osx/Cabal-1.24.2.0/build/Graphics/UI/Gtk/ActionMenuToolbar/RecentAction.o )
[ 46 of 209] Compiling Graphics.UI.Gtk.Abstract.Separator ( Graphics/UI/Gtk/Abstract/Separator.hs, .stack-work/dist/x86_64-osx/Cabal-1.24.2.0/build/Graphics/UI/Gtk/Abstract/Separator.o )
[ 47 of 209] Compiling Graphics.UI.Gtk.Abstract.Scrollbar ( Graphics/UI/Gtk/Abstract/Scrollbar.hs, .stack-work/dist/x86_64-osx/Cabal-1.24.2.0/build/Graphics/UI/Gtk/Abstract/Scrollbar.o )
[ 48 of 209] Compiling Graphics.UI.Gtk.Abstract.Scale ( .stack-work/dist/x86_64-osx/Cabal-1.24.2.0/build/Graphics/UI/Gtk/Abstract/Scale.hs, .stack-work/dist/x86_64-osx/Cabal-1.24.2.0/build/Graphics/UI/Gtk/Abstract/Scale.o )
[ 49 of 209] Compiling Graphics.UI.Gtk.Abstract.Object ( .stack-work/dist/x86_64-osx/Cabal-1.24.2.0/build/Graphics/UI/Gtk/Abstract/Object.hs, .stack-work/dist/x86_64-osx/Cabal-1.24.2.0/build/Graphics/UI/Gtk/Abstract/Object.o )
[ 50 of 209] Compiling Graphics.UI.Gtk.ActionMenuToolbar.UIManager ( .stack-work/dist/x86_64-osx/Cabal-1.24.2.0/build/Graphics/UI/Gtk/ActionMenuToolbar/UIManager.hs, .stack-work/dist/x86_64-osx/Cabal-1.24.2.0/build/Graphics/UI/Gtk/ActionMenuToolbar/UIManager.o )
[ 51 of 209] Compiling Graphics.UI.Gtk.Buttons.CheckButton ( .stack-work/dist/x86_64-osx/Cabal-1.24.2.0/build/Graphics/UI/Gtk/Buttons/CheckButton.hs, .stack-work/dist/x86_64-osx/Cabal-1.24.2.0/build/Graphics/UI/Gtk/Buttons/CheckButton.o )
[ 52 of 209] Compiling Graphics.UI.Gtk.Buttons.LinkButton ( .stack-work/dist/x86_64-osx/Cabal-1.24.2.0/build/Graphics/UI/Gtk/Buttons/LinkButton.hs, .stack-work/dist/x86_64-osx/Cabal-1.24.2.0/build/Graphics/UI/Gtk/Buttons/LinkButton.o )
[ 53 of 209] Compiling Graphics.UI.Gtk.Buttons.RadioButton ( .stack-work/dist/x86_64-osx/Cabal-1.24.2.0/build/Graphics/UI/Gtk/Buttons/RadioButton.hs, .stack-work/dist/x86_64-osx/Cabal-1.24.2.0/build/Graphics/UI/Gtk/Buttons/RadioButton.o )
[ 54 of 209] Compiling Graphics.UI.Gtk.Buttons.ToggleButton ( .stack-work/dist/x86_64-osx/Cabal-1.24.2.0/build/Graphics/UI/Gtk/Buttons/ToggleButton.hs, .stack-work/dist/x86_64-osx/Cabal-1.24.2.0/build/Graphics/UI/Gtk/Buttons/ToggleButton.o )
[ 55 of 209] Compiling Graphics.UI.Gtk.Buttons.VolumeButton ( .stack-work/dist/x86_64-osx/Cabal-1.24.2.0/build/Graphics/UI/Gtk/Buttons/VolumeButton.hs, .stack-work/dist/x86_64-osx/Cabal-1.24.2.0/build/Graphics/UI/Gtk/Buttons/VolumeButton.o )
[ 56 of 209] Compiling Graphics.UI.Gtk.Display.AccelLabel ( .stack-work/dist/x86_64-osx/Cabal-1.24.2.0/build/Graphics/UI/Gtk/Display/AccelLabel.hs, .stack-work/dist/x86_64-osx/Cabal-1.24.2.0/build/Graphics/UI/Gtk/Display/AccelLabel.o )
[ 57 of 209] Compiling Graphics.UI.Gtk.Display.Label ( .stack-work/dist/x86_64-osx/Cabal-1.24.2.0/build/Graphics/UI/Gtk/Display/Label.hs, .stack-work/dist/x86_64-osx/Cabal-1.24.2.0/build/Graphics/UI/Gtk/Display/Label.o )
[ 58 of 209] Compiling Graphics.UI.Gtk.Display.ProgressBar ( .stack-work/dist/x86_64-osx/Cabal-1.24.2.0/build/Graphics/UI/Gtk/Display/ProgressBar.hs, .stack-work/dist/x86_64-osx/Cabal-1.24.2.0/build/Graphics/UI/Gtk/Display/ProgressBar.o )
[ 59 of 209] Compiling Graphics.UI.Gtk.Display.Spinner ( .stack-work/dist/x86_64-osx/Cabal-1.24.2.0/build/Graphics/UI/Gtk/Display/Spinner.hs, .stack-work/dist/x86_64-osx/Cabal-1.24.2.0/build/Graphics/UI/Gtk/Display/Spinner.o )
[ 60 of 209] Compiling Graphics.UI.Gtk.Display.Statusbar ( .stack-work/dist/x86_64-osx/Cabal-1.24.2.0/build/Graphics/UI/Gtk/Display/Statusbar.hs, .stack-work/dist/x86_64-osx/Cabal-1.24.2.0/build/Graphics/UI/Gtk/Display/Statusbar.o )
[ 61 of 209] Compiling Graphics.UI.Gtk.Entry.EntryCompletion ( .stack-work/dist/x86_64-osx/Cabal-1.24.2.0/build/Graphics/UI/Gtk/Entry/EntryCompletion.hs, .stack-work/dist/x86_64-osx/Cabal-1.24.2.0/build/Graphics/UI/Gtk/Entry/EntryCompletion.o )
[ 62 of 209] Compiling Graphics.UI.Gtk.Entry.HScale ( .stack-work/dist/x86_64-osx/Cabal-1.24.2.0/build/Graphics/UI/Gtk/Entry/HScale.hs, .stack-work/dist/x86_64-osx/Cabal-1.24.2.0/build/Graphics/UI/Gtk/Entry/HScale.o )
[ 63 of 209] Compiling Graphics.UI.Gtk.Entry.VScale ( .stack-work/dist/x86_64-osx/Cabal-1.24.2.0/build/Graphics/UI/Gtk/Entry/VScale.hs, .stack-work/dist/x86_64-osx/Cabal-1.24.2.0/build/Graphics/UI/Gtk/Entry/VScale.o )
[ 64 of 209] Compiling Graphics.UI.Gtk.General.Structs ( .stack-work/dist/x86_64-osx/Cabal-1.24.2.0/build/Graphics/UI/Gtk/General/Structs.hs, .stack-work/dist/x86_64-osx/Cabal-1.24.2.0/build/Graphics/UI/Gtk/General/Structs.o )
[ 65 of 209] Compiling Graphics.UI.Gtk.Abstract.Range ( .stack-work/dist/x86_64-osx/Cabal-1.24.2.0/build/Graphics/UI/Gtk/Abstract/Range.hs, .stack-work/dist/x86_64-osx/Cabal-1.24.2.0/build/Graphics/UI/Gtk/Abstract/Range.o )
[ 66 of 209] Compiling Graphics.UI.Gtk.Buttons.ScaleButton ( .stack-work/dist/x86_64-osx/Cabal-1.24.2.0/build/Graphics/UI/Gtk/Buttons/ScaleButton.hs, .stack-work/dist/x86_64-osx/Cabal-1.24.2.0/build/Graphics/UI/Gtk/Buttons/ScaleButton.o )
[ 67 of 209] Compiling Graphics.UI.Gtk.Embedding.Plug ( .stack-work/dist/x86_64-osx/Cabal-1.24.2.0/build/Graphics/UI/Gtk/Embedding/Plug.hs, .stack-work/dist/x86_64-osx/Cabal-1.24.2.0/build/Graphics/UI/Gtk/Embedding/Plug.o )
/private/var/folders/kx/y9231gps2fldv7xgpk3xpjw00000gn/T/stack58395/gtk-0.14.7/Graphics/UI/Gtk/Embedding/Plug.chs:120:6: error:
• Couldn't match expected type ‘Ptr ()’
with actual type ‘Maybe DrawWindow’
• In the first argument of ‘gtk_plug_new’, namely
‘(fromNativeWindowId (fromMaybe nativeWindowIdNone socketId))’
In the second argument of ‘($)’, namely
‘gtk_plug_new
(fromNativeWindowId (fromMaybe nativeWindowIdNone socketId))’
In the second argument of ‘($)’, namely
‘liftM (castPtr :: Ptr Widget -> Ptr Plug)
$ gtk_plug_new
(fromNativeWindowId (fromMaybe nativeWindowIdNone socketId))’
/private/var/folders/kx/y9231gps2fldv7xgpk3xpjw00000gn/T/stack58395/gtk-0.14.7/Graphics/UI/Gtk/Embedding/Plug.chs:137:6: error:
• Couldn't match expected type ‘Ptr ()’
with actual type ‘Maybe DrawWindow’
• In the second argument of ‘\ (Display arg1) arg2
-> withForeignPtr arg1
$ \ argPtr1 -> gtk_plug_new_for_display argPtr1 arg2’, namely
‘(fromNativeWindowId (fromMaybe nativeWindowIdNone socketId))’
In the second argument of ‘($)’, namely
‘(\ (Display arg1) arg2
-> withForeignPtr arg1
$ \ argPtr1 -> gtk_plug_new_for_display argPtr1 arg2)
display
(fromNativeWindowId (fromMaybe nativeWindowIdNone socketId))’
In the second argument of ‘($)’, namely
‘liftM (castPtr :: Ptr Widget -> Ptr Plug)
$ (\ (Display arg1) arg2
-> withForeignPtr arg1
$ \ argPtr1 -> gtk_plug_new_for_display argPtr1 arg2)
display
(fromNativeWindowId (fromMaybe nativeWindowIdNone socketId))’
/private/var/folders/kx/y9231gps2fldv7xgpk3xpjw00000gn/T/stack58395/gtk-0.14.7/Graphics/UI/Gtk/Embedding/Plug.chs:151:3: error:
• Couldn't match type ‘Ptr ()’ with ‘Maybe DrawWindow’
Expected type: IO (Maybe DrawWindow)
Actual type: IO (Ptr ())
• In the second argument of ‘($)’, namely
‘(\ (Plug arg1)
-> withForeignPtr arg1 $ \ argPtr1 -> gtk_plug_get_id argPtr1)
(toPlug self)’
In the expression:
liftM toNativeWindowId
$ (\ (Plug arg1)
-> withForeignPtr arg1 $ \ argPtr1 -> gtk_plug_get_id argPtr1)
(toPlug self)
In an equation for ‘plugGetId’:
plugGetId self
= liftM toNativeWindowId
$ (\ (Plug arg1)
-> withForeignPtr arg1 $ \ argPtr1 -> gtk_plug_get_id argPtr1)
(toPlug self)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment