Resolving dependencies... Downloading AGI-1.1... [1 of 1] Compiling Main ( /tmp/AGI-1.1-31228/AGI-1.1/Setup.hs, /tmp/AGI-1.1-31228/AGI-1.1/dist/setup/Main.o ) /tmp/AGI-1.1-31228/AGI-1.1/Setup.hs:5:29: Warning: In the use of `defaultUserHooks' (imported from Distribution.Simple): Deprecated: "Use simpleUserHooks or autoconfUserHooks, unless you need Cabal-1.2 compatibility in which case you must stick with defaultUserHooks" Linking /tmp/AGI-1.1-31228/AGI-1.1/dist/setup/setup ... Warning: defaultUserHooks in Setup script is deprecated. Configuring AGI-1.1... Warning: No 'build-type' specified. If you do not need a custom Setup.hs or ./configure script then use 'build-type: Simple'. Building AGI-1.1... Preprocessing library AGI-1.1... Network/AGI.hs:1:16: Warning: -fglasgow-exts is deprecated: Use individual extensions instead Network/AGI.hs:30:8: Could not find module `System.Random' It is a member of the hidden package `random-1.0.1.1'. Perhaps you need to add `random' to the build-depends in your .cabal file. Use -v to see a list of the files searched for. Failed to install AGI-1.1 cabal: Error: some packages failed to install: AGI-1.1 failed during the building phase. The exception was: ExitFailure 1