title: Installing sqlite driver in Haskell using stack
body: <p>I have sqlite3 installed in Ubuntu.</p>
  
  <pre><code>$ which sqlite3
  /home/user/anaconda3/bin/sqlite3
  </code></pre>
  
  <p>I'm trying to install the sqlite driver in Haskell and see the following error:</p>
  
  <pre><code>$ stack install sqlite
  sqlite-0.5.5: configure
  sqlite-0.5.5: build
  
  --  While building custom Setup.hs for package sqlite-0.5.5 using:
        /tmp/stack16820/sqlite-0.5.5/.stack-work/dist/x86_64-linux/Cabal-2.2.0.1/setup/setup --builddir=.stack-work/dist/x86_64-linux/Cabal-2.2.0.1 build --ghc-options " -ddump-hi -ddump-to-file -fdiagnostics-color=always"
      Process exited with code: ExitFailure 1
      Logs have been written to: /home/user/.stack/global-project/.stack-work/logs/sqlite-0.5.5.log
  
      [1 of 2] Compiling Main             ( /tmp/stack16820/sqlite-0.5.5/Setup.hs, /tmp/stack16820/sqlite-0.5.5/.stack-work/dist/x86_64-linux/Cabal-2.2.0.1/setup/Main.o )
      [2 of 2] Compiling StackSetupShim   ( /home/user/.stack/setup-exe-src/setup-shim-mPHDZzAJ.hs, /tmp/stack16820/sqlite-0.5.5/.stack-work/dist/x86_64-linux/Cabal-2.2.0.1/setup/StackSetupShim.o )
      Linking /tmp/stack16820/sqlite-0.5.5/.stack-work/dist/x86_64-linux/Cabal-2.2.0.1/setup/setup ...
      Configuring sqlite-0.5.5...
      Preprocessing library for sqlite-0.5.5..
      Building library for sqlite-0.5.5..
      [1 of 5] Compiling Database.SQL.Types ( Database/SQL/Types.hs, .stack-work/dist/x86_64-linux/Cabal-2.2.0.1/build/Database/SQL/Types.o )
  
      /tmp/stack16820/sqlite-0.5.5/Database/SQL/Types.hs:481:37: error:
          Ambiguous occurrence ‘&lt;&gt;’
          It could refer to either ‘Prelude.&lt;&gt;’,
                                   imported from ‘Prelude’ at Database/SQL/Types.hs:15:8-25
                                   (and originally defined in ‘GHC.Base’)
                                or ‘Text.PrettyPrint.HughesPJ.&lt;&gt;’,
                                   imported from ‘Text.PrettyPrint.HughesPJ’ at Database/SQL/Types.hs:56:1-32
          |
      481 |       FunSQLExpr f es     -&gt; text f &lt;&gt; parens (commaH ppSQLExpr es)
          |                                     ^^
  </code></pre>
  
  <p>Which of ghc, stack, cabal, anaconda, sqlite should I interrogate to figure out what is failing?</p>