<div dir="ltr">Awesome, thanks! <br><div><br></div><div><div>I got used to relying on stack and not installing system-wide GHC. Is it possible to achieve the same with `stack`? </div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">ср, 22 сент. 2021 г. в 03:08, Branimir Maksimovic <<a href="mailto:branimir.maksimovic@gmail.com">branimir.maksimovic@gmail.com</a>>:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div style="word-wrap:break-word;line-break:after-white-space">Seems builds no problem…<div><div>To start postgresql:</div><div> brew services start postgresql</div><div>Or, if you don't want/need a background service you can just run:</div><div> /opt/homebrew/opt/postgresql/bin/postgres -D /opt/homebrew/var/postgres</div><div>bmaxa@Branimirs-Air ~ % cabal install persistent-postgresql</div><div>Warning: The package list for '<a href="http://hackage.haskell.org" target="_blank">hackage.haskell.org</a>' is 69 days old.</div><div>Run 'cabal update' to get the latest list of available packages.</div><div>Warning: The package list for '<a href="http://hackage.haskell.org" target="_blank">hackage.haskell.org</a>' is 69 days old.</div><div>Run 'cabal update' to get the latest list of available packages.</div><div>Resolving dependencies...</div><div>Build profile: -w ghc-8.10.7 -O1</div><div>In order, the following will be built (use -v for more details):</div><div> - Only-0.1 (lib) (requires build)</div><div> - blaze-builder-0.4.2.1 (lib) (requires download & build)</div><div> - base-compat-0.11.2 (lib) (requires build)</div><div> - base-orphans-0.8.4 (lib) (requires build)</div><div> - base64-bytestring-1.2.0.1 (lib) (requires download & build)</div><div> - bytestring-builder-0.10.8.2.0 (lib) (requires download & build)</div><div> - dlist-1.0 (lib) (requires build)</div><div> - data-default-class-0.1.2.0 (lib:data-default-class) (requires build)</div><div> - hsc2hs-0.68.7 (exe:hsc2hs) (requires build)</div><div> - hashable-1.3.2.0 (lib) (requires build)</div><div> - old-locale-1.0.0.7 (lib) (requires download & build)</div><div> - lift-type-0.1.0.1 (lib) (requires download & build)</div><div> - monad-loops-0.4.3 (lib) (requires download & build)</div><div> - indexed-traversable-0.1.1 (lib) (requires build)</div><div> - unliftio-core-0.2.0.1 (lib) (requires download & build)</div><div> - integer-logarithms-1.0.3.1 (lib) (requires build)</div><div> - unix-compat-0.5.3 (lib) (requires download & build)</div><div> - primitive-0.7.1.0 (lib) (requires build)</div><div> - path-pieces-0.2.1 (lib) (requires download & build)</div><div> - silently-1.2.5.1 (lib) (requires download & build)</div><div> - split-0.2.3.4 (lib) (requires download & build)</div><div> - splitmix-0.1.0.3 (lib) (requires build)</div><div> - stm-chans-3.0.0.4 (lib:stm-chans) (requires download & build)</div><div> - easy-file-0.2.2 (lib:easy-file) (requires download & build)</div><div> - auto-update-0.1.6 (lib) (requires download & build)</div><div> - utf8-string-1.0.2 (lib) (requires download & build)</div><div> - tagged-0.8.6.1 (lib) (requires build)</div><div> - th-abstraction-0.4.2.0 (lib) (requires build)</div><div> - transformers-compat-0.6.6 (lib) (requires build)</div><div> - zlib-0.6.2.3 (lib) (requires download & build)</div><div> - blaze-markup-0.8.2.8 (lib) (requires download & build)</div><div> - base-compat-batteries-0.11.2 (lib) (requires build)</div><div> - cookie-0.4.5 (lib) (requires download & build)</div><div> - postgresql-libpq-0.9.4.3 (lib:postgresql-libpq) (requires download & build)</div><div> - network-3.1.2.2 (lib:network) (requires download & build)</div><div> - time-compat-1.9.6 (lib) (requires build)</div><div> - async-2.2.3 (lib) (requires build)</div><div> - unordered-containers-0.2.14.0 (lib) (requires build)</div><div> - data-fix-0.3.1 (lib) (requires build)</div><div> - case-insensitive-1.2.1.0 (lib) (requires download & build)</div><div> - old-time-1.1.0.3 (lib:old-time) (requires download & build)</div><div> - vector-0.12.3.0 (lib) (requires build)</div><div> - scientific-0.3.7.0 (lib) (requires build)</div><div> - resourcet-1.2.4.2 (lib) (requires download & build)</div><div> - random-1.2.0 (lib) (requires build)</div><div> - string-conversions-0.4.0.1 (lib) (requires download & build)</div><div> - distributive-0.6.2.1 (lib) (requires build)</div><div> - th-lift-0.8.2 (lib) (requires download & build)</div><div> - transformers-base-0.4.5.2 (lib) (requires download & build)</div><div> - blaze-html-0.9.1.2 (lib) (requires download & build)</div><div> - typed-process-0.2.6.0 (lib) (requires download & build)</div><div> - unliftio-0.2.18 (lib) (requires download & build)</div><div> - http-types-0.12.3 (lib) (requires download & build)</div><div> - unix-time-0.4.7 (lib:unix-time) (requires download & build)</div><div> - vector-algorithms-0.8.0.4 (lib) (requires build)</div><div> - attoparsec-0.14.1 (lib) (requires build)</div><div> - streaming-commons-0.2.2.1 (lib) (requires download & build)</div><div> - uuid-types-1.0.5 (lib) (requires build)</div><div> - comonad-5.0.8 (lib) (requires build)</div><div> - th-lift-instances-0.1.18 (lib) (requires download & build)</div><div> - monad-control-1.0.2.3 (lib:monad-control) (requires download & build)</div><div> - fast-logger-3.0.5 (lib) (requires download & build)</div><div> - mono-traversable-1.0.15.1 (lib) (requires download & build)</div><div> - attoparsec-iso8601-1.0.2.0 (lib) (requires download & build)</div><div> - bifunctors-5.5.11 (lib) (requires build)</div><div> - resource-pool-0.2.3.2 (lib) (requires download & build)</div><div> - lifted-base-0.2.3.12 (lib) (requires download & build)</div><div> - conduit-1.3.4.1 (lib) (requires download & build)</div><div> - http-api-data-0.4.3 (lib) (requires download & build)</div><div> - assoc-1.0.2 (lib) (requires build)</div><div> - conduit-extra-1.3.5 (lib) (requires download & build)</div><div> - these-1.1.1.1 (lib) (requires build)</div><div> - monad-logger-0.3.36 (lib) (requires download & build)</div><div> - strict-0.4.0.1 (lib) (requires build)</div><div> - aeson-1.5.6.0 (lib) (requires build)</div><div> - postgresql-simple-0.6.4 (lib) (requires download & build)</div><div> - persistent-2.13.1.1 (lib) (requires download & build)</div><div> - persistent-postgresql-2.13.0.3 (lib) (requires download & build)</div><div>Downloading old-locale-1.0.0.7</div><div>Starting base-orphans-0.8.4 (lib)</div><div>Starting data-default-class-0.1.2.0 (all, legacy fallback)</div><div>Starting dlist-1.0 (lib)</div><div>Starting Only-0.1 (lib)</div><div>Starting base-compat-0.11.2 (lib)</div><div>Building dlist-1.0 (lib)</div><div>Building data-default-class-0.1.2.0 (all, legacy fallback)</div><div>Building base-compat-0.11.2 (lib)</div><div>Building base-orphans-0.8.4 (lib)</div><div>Building Only-0.1 (lib)</div><div>Downloaded old-locale-1.0.0.7</div><div>Downloading old-time-1.1.0.3</div><div>Installing data-default-class-0.1.2.0 (all, legacy fallback)</div><div>Installing Only-0.1 (lib)</div><div>Completed data-default-class-0.1.2.0 (all, legacy fallback)</div><div>Starting hsc2hs-0.68.7 (exe:hsc2hs)</div><div>Downloaded old-time-1.1.0.3</div><div>Downloading monad-loops-0.4.3</div><div>Completed Only-0.1 (lib)</div><div>Starting hashable-1.3.2.0 (lib)</div><div>Downloaded monad-loops-0.4.3</div><div>Downloading split-0.2.3.4</div><div>Building hsc2hs-0.68.7 (exe:hsc2hs)</div><div>Building hashable-1.3.2.0 (lib)</div><div>Downloaded split-0.2.3.4</div><div>Downloading auto-update-0.1.6</div><div>Downloaded auto-update-0.1.6</div><div>Downloading unliftio-core-0.2.0.1</div><div>Downloaded unliftio-core-0.2.0.1</div><div>Downloading base64-bytestring-1.2.0.1</div><div>Installing dlist-1.0 (lib)</div><div>Completed dlist-1.0 (lib)</div><div>Starting old-locale-1.0.0.7 (lib)</div><div>Downloaded base64-bytestring-1.2.0.1</div><div>Downloading utf8-string-1.0.2</div><div>Starting base64-bytestring-1.2.0.1 (lib)</div><div>Building old-locale-1.0.0.7 (lib)</div><div>Downloaded utf8-string-1.0.2</div><div>Downloading zlib-0.6.2.3</div><div>Building base64-bytestring-1.2.0.1 (lib)</div><div>Installing base-orphans-0.8.4 (lib)</div><div>Downloaded zlib-0.6.2.3</div><div>Downloading bytestring-builder-0.10.8.2.0</div><div>Completed base-orphans-0.8.4 (lib)</div><div>Installing old-locale-1.0.0.7 (lib)</div><div>Downloaded bytestring-builder-0.10.8.2.0</div><div>Downloading lift-type-0.1.0.1</div><div>Starting bytestring-builder-0.10.8.2.0 (lib)</div><div>Installing hashable-1.3.2.0 (lib)</div><div>Completed old-locale-1.0.0.7 (lib)</div><div>Starting monad-loops-0.4.3 (lib)</div><div>Completed hashable-1.3.2.0 (lib)</div><div>Starting indexed-traversable-0.1.1 (lib)</div><div>Downloaded lift-type-0.1.0.1</div><div>Downloading th-lift-0.8.2</div><div>Building bytestring-builder-0.10.8.2.0 (lib)</div><div>Starting lift-type-0.1.0.1 (lib)</div><div>Installing bytestring-builder-0.10.8.2.0 (lib)</div><div>Building monad-loops-0.4.3 (lib)</div><div>Completed bytestring-builder-0.10.8.2.0 (lib)</div><div>Starting unliftio-core-0.2.0.1 (lib)</div><div>Building indexed-traversable-0.1.1 (lib)</div><div>Downloaded th-lift-0.8.2</div><div>Downloading silently-1.2.5.1</div><div>Building lift-type-0.1.0.1 (lib)</div><div>Installing base64-bytestring-1.2.0.1 (lib)</div><div>Building unliftio-core-0.2.0.1 (lib)</div><div>Completed base64-bytestring-1.2.0.1 (lib)</div><div>Starting integer-logarithms-1.0.3.1 (lib)</div><div>Downloaded silently-1.2.5.1</div><div>Downloading unix-compat-0.5.3</div><div>Installing lift-type-0.1.0.1 (lib)</div><div>Completed lift-type-0.1.0.1 (lib)</div><div>Downloaded unix-compat-0.5.3</div><div>Downloading network-3.1.2.2</div><div>Building integer-logarithms-1.0.3.1 (lib)</div><div>Starting unix-compat-0.5.3 (lib)</div><div>Installing unliftio-core-0.2.0.1 (lib)</div><div>Completed unliftio-core-0.2.0.1 (lib)</div><div>Starting primitive-0.7.1.0 (lib)</div><div>Downloaded network-3.1.2.2</div><div>Downloading unix-time-0.4.7</div><div>Building unix-compat-0.5.3 (lib)</div><div>Installing monad-loops-0.4.3 (lib)</div><div>Completed monad-loops-0.4.3 (lib)</div><div>Building primitive-0.7.1.0 (lib)</div><div>Downloaded unix-time-0.4.7</div><div>Downloading easy-file-0.2.2</div><div>Downloaded easy-file-0.2.2</div><div>Downloading resourcet-1.2.4.2</div><div>Downloaded resourcet-1.2.4.2</div><div>Downloading transformers-base-0.4.5.2</div><div>Installing integer-logarithms-1.0.3.1 (lib)</div><div>Completed integer-logarithms-1.0.3.1 (lib)</div><div>Starting silently-1.2.5.1 (lib)</div><div>Downloaded transformers-base-0.4.5.2</div><div>Downloading monad-control-1.0.2.3</div><div>Installing unix-compat-0.5.3 (lib)</div><div>Building silently-1.2.5.1 (lib)</div><div>Completed unix-compat-0.5.3 (lib)</div><div>Starting split-0.2.3.4 (lib)</div><div>Downloaded monad-control-1.0.2.3</div><div>Downloading lifted-base-0.2.3.12</div><div>Downloaded lifted-base-0.2.3.12</div><div>Downloading blaze-builder-0.4.2.1</div><div>Installing silently-1.2.5.1 (lib)</div><div>Building split-0.2.3.4 (lib)</div><div>Completed silently-1.2.5.1 (lib)</div><div>Starting splitmix-0.1.0.3 (lib)</div><div>Installing hsc2hs-0.68.7 (exe:hsc2hs)</div><div>Downloaded blaze-builder-0.4.2.1</div><div>Downloading blaze-markup-0.8.2.8</div><div>Completed hsc2hs-0.68.7 (exe:hsc2hs)</div><div>Starting blaze-builder-0.4.2.1 (lib)</div><div>Building splitmix-0.1.0.3 (lib)</div><div>Downloaded blaze-markup-0.8.2.8</div><div>Downloading blaze-html-0.9.1.2</div><div>Installing indexed-traversable-0.1.1 (lib)</div><div>Building blaze-builder-0.4.2.1 (lib)</div><div>Completed indexed-traversable-0.1.1 (lib)</div><div>Starting easy-file-0.2.2 (all, legacy fallback)</div><div>Downloaded blaze-html-0.9.1.2</div><div>Downloading cookie-0.4.5</div><div>Installing split-0.2.3.4 (lib)</div><div>Completed split-0.2.3.4 (lib)</div><div>Starting auto-update-0.1.6 (lib)</div><div>Building easy-file-0.2.2 (all, legacy fallback)</div><div>Downloaded cookie-0.4.5</div><div>Downloading fast-logger-3.0.5</div><div>Building auto-update-0.1.6 (lib)</div><div>Downloaded fast-logger-3.0.5</div><div>Downloading case-insensitive-1.2.1.0</div><div>Downloaded case-insensitive-1.2.1.0</div><div>Downloading resource-pool-0.2.3.2</div><div>Installing splitmix-0.1.0.3 (lib)</div><div>Installing base-compat-0.11.2 (lib)</div><div>Completed splitmix-0.1.0.3 (lib)</div><div>Starting utf8-string-1.0.2 (lib)</div><div>Completed base-compat-0.11.2 (lib)</div><div>Starting tagged-0.8.6.1 (lib)</div><div>Installing easy-file-0.2.2 (all, legacy fallback)</div><div>Downloaded resource-pool-0.2.3.2</div><div>Downloading unliftio-0.2.18</div><div>Completed easy-file-0.2.2 (all, legacy fallback)</div><div>Starting th-abstraction-0.4.2.0 (lib)</div><div>Installing auto-update-0.1.6 (lib)</div><div>Building utf8-string-1.0.2 (lib)</div><div>Completed auto-update-0.1.6 (lib)</div><div>Starting transformers-compat-0.6.6 (lib)</div><div>Building tagged-0.8.6.1 (lib)</div><div>Downloaded unliftio-0.2.18</div><div>Downloading typed-process-0.2.6.0</div><div>Building th-abstraction-0.4.2.0 (lib)</div><div>Downloaded typed-process-0.2.6.0</div><div>Downloading http-types-0.12.3</div><div>Building transformers-compat-0.6.6 (lib)</div><div>Downloaded http-types-0.12.3</div><div>Downloading mono-traversable-1.0.15.1</div><div>Downloaded mono-traversable-1.0.15.1</div><div>Downloading conduit-1.3.4.1</div><div>Downloaded conduit-1.3.4.1</div><div>Downloading path-pieces-0.2.1</div><div>Downloaded path-pieces-0.2.1</div><div>Downloading streaming-commons-0.2.2.1</div><div>Starting path-pieces-0.2.1 (lib)</div><div>Installing blaze-builder-0.4.2.1 (lib)</div><div>Downloaded streaming-commons-0.2.2.1</div><div>Downloading string-conversions-0.4.0.1</div><div>Completed blaze-builder-0.4.2.1 (lib)</div><div>Installing tagged-0.8.6.1 (lib)</div><div>Starting zlib-0.6.2.3 (lib)</div><div>Completed tagged-0.8.6.1 (lib)</div><div>Starting cookie-0.4.5 (lib)</div><div>Building path-pieces-0.2.1 (lib)</div><div>Downloaded string-conversions-0.4.0.1</div><div>Downloading th-lift-instances-0.1.18</div><div>Downloaded th-lift-instances-0.1.18</div><div>Downloading conduit-extra-1.3.5</div><div>Building zlib-0.6.2.3 (lib)</div><div>Building cookie-0.4.5 (lib)</div><div>Installing transformers-compat-0.6.6 (lib)</div><div>Downloaded conduit-extra-1.3.5</div><div>Downloading attoparsec-iso8601-1.0.2.0</div><div>Completed transformers-compat-0.6.6 (lib)</div><div>Starting old-time-1.1.0.3 (all, legacy fallback)</div><div>Downloaded attoparsec-iso8601-1.0.2.0</div><div>Downloading http-api-data-0.4.3</div><div>Downloaded http-api-data-0.4.3</div><div>Downloading postgresql-libpq-0.9.4.3</div><div>Downloaded postgresql-libpq-0.9.4.3</div><div>Downloading postgresql-simple-0.6.4</div><div>Installing path-pieces-0.2.1 (lib)</div><div>Completed path-pieces-0.2.1 (lib)</div><div>Starting time-compat-1.9.6 (lib)</div><div>Downloaded postgresql-simple-0.6.4</div><div>Downloading stm-chans-3.0.0.4</div><div>Installing cookie-0.4.5 (lib)</div><div>Downloaded stm-chans-3.0.0.4</div><div>Downloading monad-logger-0.3.36</div><div>Starting stm-chans-3.0.0.4 (all, legacy fallback)</div><div>Installing utf8-string-1.0.2 (lib)</div><div>Completed cookie-0.4.5 (lib)</div><div>Starting async-2.2.3 (lib)</div><div>Building time-compat-1.9.6 (lib)</div><div>Completed utf8-string-1.0.2 (lib)</div><div>Starting unordered-containers-0.2.14.0 (lib)</div><div>Downloaded monad-logger-0.3.36</div><div>Downloading persistent-2.13.1.1</div><div>Downloaded persistent-2.13.1.1</div><div>Downloading persistent-postgresql-2.13.0.3</div><div>Building async-2.2.3 (lib)</div><div>Building unordered-containers-0.2.14.0 (lib)</div><div>Downloaded persistent-postgresql-2.13.0.3</div><div>Building old-time-1.1.0.3 (all, legacy fallback)</div><div>Installing async-2.2.3 (lib)</div><div>Installing primitive-0.7.1.0 (lib)</div><div>Completed async-2.2.3 (lib)</div><div>Starting data-fix-0.3.1 (lib)</div><div>Completed primitive-0.7.1.0 (lib)</div><div>Starting case-insensitive-1.2.1.0 (lib)</div><div>Building data-fix-0.3.1 (lib)</div><div>Building case-insensitive-1.2.1.0 (lib)</div><div>Building stm-chans-3.0.0.4 (all, legacy fallback)</div><div>Installing th-abstraction-0.4.2.0 (lib)</div><div>Completed th-abstraction-0.4.2.0 (lib)</div><div>Starting postgresql-libpq-0.9.4.3 (all, legacy fallback)</div><div>Installing case-insensitive-1.2.1.0 (lib)</div><div>Installing data-fix-0.3.1 (lib)</div><div>Completed case-insensitive-1.2.1.0 (lib)</div><div>Starting network-3.1.2.2 (all, legacy fallback)</div><div>Completed data-fix-0.3.1 (lib)</div><div>Starting random-1.2.0 (lib)</div><div>Installing zlib-0.6.2.3 (lib)</div><div>Completed zlib-0.6.2.3 (lib)</div><div>Starting base-compat-batteries-0.11.2 (lib)</div><div>Building random-1.2.0 (lib)</div><div>Building base-compat-batteries-0.11.2 (lib)</div><div>Installing old-time-1.1.0.3 (all, legacy fallback)</div><div>Installing time-compat-1.9.6 (lib)</div><div>Installing stm-chans-3.0.0.4 (all, legacy fallback)</div><div>Completed old-time-1.1.0.3 (all, legacy fallback)</div><div>Starting blaze-markup-0.8.2.8 (lib)</div><div>Completed time-compat-1.9.6 (lib)</div><div>Starting distributive-0.6.2.1 (lib)</div><div>Completed stm-chans-3.0.0.4 (all, legacy fallback)</div><div>Building blaze-markup-0.8.2.8 (lib)</div><div>Starting transformers-base-0.4.5.2 (lib)</div><div>Building distributive-0.6.2.1 (lib)</div><div>Building transformers-base-0.4.5.2 (lib)</div><div>Building postgresql-libpq-0.9.4.3 (all, legacy fallback)</div><div>Installing distributive-0.6.2.1 (lib)</div><div>Installing transformers-base-0.4.5.2 (lib)</div><div>Building network-3.1.2.2 (all, legacy fallback)</div><div>Completed distributive-0.6.2.1 (lib)</div><div>Starting string-conversions-0.4.0.1 (lib)</div><div>Completed transformers-base-0.4.5.2 (lib)</div><div>Starting typed-process-0.2.6.0 (lib)</div><div>Building string-conversions-0.4.0.1 (lib)</div><div>Building typed-process-0.2.6.0 (lib)</div><div>Installing string-conversions-0.4.0.1 (lib)</div><div>Completed string-conversions-0.4.0.1 (lib)</div><div>Starting unliftio-0.2.18 (lib)</div><div>Building unliftio-0.2.18 (lib)</div><div>Installing typed-process-0.2.6.0 (lib)</div><div>Completed typed-process-0.2.6.0 (lib)</div><div>Starting vector-0.12.3.0 (lib)</div><div>Building vector-0.12.3.0 (lib)</div><div>Installing postgresql-libpq-0.9.4.3 (all, legacy fallback)</div><div>Completed postgresql-libpq-0.9.4.3 (all, legacy fallback)</div><div>Starting scientific-0.3.7.0 (lib)</div><div>Building scientific-0.3.7.0 (lib)</div><div>Installing blaze-markup-0.8.2.8 (lib)</div><div>Completed blaze-markup-0.8.2.8 (lib)</div><div>Starting resourcet-1.2.4.2 (lib)</div><div>Installing random-1.2.0 (lib)</div><div>Building resourcet-1.2.4.2 (lib)</div><div>Completed random-1.2.0 (lib)</div><div>Starting th-lift-0.8.2 (lib)</div><div>Building th-lift-0.8.2 (lib)</div><div>Installing unordered-containers-0.2.14.0 (lib)</div><div>Completed unordered-containers-0.2.14.0 (lib)</div><div>Starting http-types-0.12.3 (lib)</div><div>Building http-types-0.12.3 (lib)</div><div>Installing th-lift-0.8.2 (lib)</div><div>Completed th-lift-0.8.2 (lib)</div><div>Starting unix-time-0.4.7 (all, legacy fallback)</div><div>Installing base-compat-batteries-0.11.2 (lib)</div><div>Installing resourcet-1.2.4.2 (lib)</div><div>Completed base-compat-batteries-0.11.2 (lib)</div><div>Starting comonad-5.0.8 (lib)</div><div>Completed resourcet-1.2.4.2 (lib)</div><div>Starting monad-control-1.0.2.3 (all, legacy fallback)</div><div>Building comonad-5.0.8 (lib)</div><div>Building monad-control-1.0.2.3 (all, legacy fallback)</div><div>Installing unliftio-0.2.18 (lib)</div><div>Installing monad-control-1.0.2.3 (all, legacy fallback)</div><div>Completed unliftio-0.2.18 (lib)</div><div>Starting blaze-html-0.9.1.2 (lib)</div><div>Building unix-time-0.4.7 (all, legacy fallback)</div><div>Completed monad-control-1.0.2.3 (all, legacy fallback)</div><div>Starting uuid-types-1.0.5 (lib)</div><div>Building blaze-html-0.9.1.2 (lib)</div><div>Building uuid-types-1.0.5 (lib)</div><div>Installing scientific-0.3.7.0 (lib)</div><div>Completed scientific-0.3.7.0 (lib)</div><div>Starting lifted-base-0.2.3.12 (lib)</div><div>Building lifted-base-0.2.3.12 (lib)</div><div>Installing network-3.1.2.2 (all, legacy fallback)</div><div>Completed network-3.1.2.2 (all, legacy fallback)</div><div>Installing http-types-0.12.3 (lib)</div><div>Installing unix-time-0.4.7 (all, legacy fallback)</div><div>Starting attoparsec-0.14.1 (lib)</div><div>Completed http-types-0.12.3 (lib)</div><div>Starting streaming-commons-0.2.2.1 (lib)</div><div>Completed unix-time-0.4.7 (all, legacy fallback)</div><div>Starting fast-logger-3.0.5 (lib)</div><div>Building attoparsec-0.14.1 (lib)</div><div>Building streaming-commons-0.2.2.1 (lib)</div><div>Building fast-logger-3.0.5 (lib)</div><div>Installing comonad-5.0.8 (lib)</div><div>Completed comonad-5.0.8 (lib)</div><div>Starting bifunctors-5.5.11 (lib)</div><div>Installing lifted-base-0.2.3.12 (lib)</div><div>Completed lifted-base-0.2.3.12 (lib)</div><div>Installing uuid-types-1.0.5 (lib)</div><div>Completed uuid-types-1.0.5 (lib)</div><div>Building bifunctors-5.5.11 (lib)</div><div>Installing fast-logger-3.0.5 (lib)</div><div>Completed fast-logger-3.0.5 (lib)</div><div>Installing streaming-commons-0.2.2.1 (lib)</div><div>Completed streaming-commons-0.2.2.1 (lib)</div><div>Installing bifunctors-5.5.11 (lib)</div><div>Completed bifunctors-5.5.11 (lib)</div><div>Starting assoc-1.0.2 (lib)</div><div>Building assoc-1.0.2 (lib)</div><div>Installing assoc-1.0.2 (lib)</div><div>Completed assoc-1.0.2 (lib)</div><div>Starting these-1.1.1.1 (lib)</div><div>Building these-1.1.1.1 (lib)</div><div>Installing these-1.1.1.1 (lib)</div><div>Completed these-1.1.1.1 (lib)</div><div>Starting strict-0.4.0.1 (lib)</div><div>Building strict-0.4.0.1 (lib)</div><div>Installing blaze-html-0.9.1.2 (lib)</div><div>Completed blaze-html-0.9.1.2 (lib)</div><div>Installing strict-0.4.0.1 (lib)</div><div>Completed strict-0.4.0.1 (lib)</div><div>Installing attoparsec-0.14.1 (lib)</div><div>Completed attoparsec-0.14.1 (lib)</div><div>Starting attoparsec-iso8601-1.0.2.0 (lib)</div><div>Building attoparsec-iso8601-1.0.2.0 (lib)</div><div>Installing attoparsec-iso8601-1.0.2.0 (lib)</div><div>Completed attoparsec-iso8601-1.0.2.0 (lib)</div><div>Starting http-api-data-0.4.3 (lib)</div><div>Building http-api-data-0.4.3 (lib)</div><div>Installing http-api-data-0.4.3 (lib)</div><div>Completed http-api-data-0.4.3 (lib)</div><div>Installing vector-0.12.3.0 (lib)</div><div>Completed vector-0.12.3.0 (lib)</div><div>Starting th-lift-instances-0.1.18 (lib)</div><div>Starting resource-pool-0.2.3.2 (lib)</div><div>Starting vector-algorithms-0.8.0.4 (lib)</div><div>Starting aeson-1.5.6.0 (lib)</div><div>Building vector-algorithms-0.8.0.4 (lib)</div><div>Building resource-pool-0.2.3.2 (lib)</div><div>Building th-lift-instances-0.1.18 (lib)</div><div>Building aeson-1.5.6.0 (lib)</div><div>Installing th-lift-instances-0.1.18 (lib)</div><div>Completed th-lift-instances-0.1.18 (lib)</div><div>Installing resource-pool-0.2.3.2 (lib)</div><div>Completed resource-pool-0.2.3.2 (lib)</div><div>Installing vector-algorithms-0.8.0.4 (lib)</div><div>Completed vector-algorithms-0.8.0.4 (lib)</div><div>Starting mono-traversable-1.0.15.1 (lib)</div><div>Building mono-traversable-1.0.15.1 (lib)</div><div>Installing mono-traversable-1.0.15.1 (lib)</div><div>Completed mono-traversable-1.0.15.1 (lib)</div><div>Starting conduit-1.3.4.1 (lib)</div><div>Building conduit-1.3.4.1 (lib)</div><div>Installing conduit-1.3.4.1 (lib)</div><div>Completed conduit-1.3.4.1 (lib)</div><div>Starting conduit-extra-1.3.5 (lib)</div><div>Building conduit-extra-1.3.5 (lib)</div><div>Installing conduit-extra-1.3.5 (lib)</div><div>Completed conduit-extra-1.3.5 (lib)</div><div>Starting monad-logger-0.3.36 (lib)</div><div>Building monad-logger-0.3.36 (lib)</div><div>Installing monad-logger-0.3.36 (lib)</div><div>Completed monad-logger-0.3.36 (lib)</div><div>Installing aeson-1.5.6.0 (lib)</div><div>Completed aeson-1.5.6.0 (lib)</div><div>Starting postgresql-simple-0.6.4 (lib)</div><div>Starting persistent-2.13.1.1 (lib)</div><div>Building persistent-2.13.1.1 (lib)</div><div>Building postgresql-simple-0.6.4 (lib)</div><div>Installing postgresql-simple-0.6.4 (lib)</div><div>Completed postgresql-simple-0.6.4 (lib)</div><div>Installing persistent-2.13.1.1 (lib)</div><div>Completed persistent-2.13.1.1 (lib)</div><div>Starting persistent-postgresql-2.13.0.3 (lib)</div><div>Building persistent-postgresql-2.13.0.3 (lib)</div><div>Installing persistent-postgresql-2.13.0.3 (lib)</div><div>Completed persistent-postgresql-2.13.0.3 (lib)</div><div>Warning:</div><div>@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@</div><div>@ WARNING: Installation might not be completed as desired! @</div><div>@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@</div><div>The command "cabal install [TARGETS]" doesn't expose libraries.</div><div>* You might have wanted to add them as dependencies to your package. In this</div><div>case add "persistent-postgresql" to the build-depends field(s) of your</div><div>package's .cabal file.</div><div>* You might have wanted to add them to a GHC environment. In this case use</div><div>"cabal install --lib persistent-postgresql". The "--lib" flag is provisional:</div><div>see <a href="https://github.com/haskell/cabal/issues/6481" target="_blank">https://github.com/haskell/cabal/issues/6481</a> for more information.</div><div>bmaxa@Branimirs-Air ~ % cabal install --lib persistent-postgresql</div><div>Warning: The package list for '<a href="http://hackage.haskell.org" target="_blank">hackage.haskell.org</a>' is 69 days old.</div><div>Run 'cabal update' to get the latest list of available packages.</div><div>Warning: The package list for '<a href="http://hackage.haskell.org" target="_blank">hackage.haskell.org</a>' is 69 days old.</div><div>Run 'cabal update' to get the latest list of available packages.</div><div>Resolving dependencies...</div><div>Up to date</div><div>bmaxa@Branimirs-Air ~ %</div><div><br></div><div>Greetings, Branimir.</div><div><br><blockquote type="cite"><div>On 21.09.2021., at 22:59, Geraldus <<a href="mailto:heraldhoi@gmail.com" target="_blank">heraldhoi@gmail.com</a>> wrote:</div><br><div><div dir="ltr">Thank you for your response. <div><br><div>I use 13.4:</div><div><br></div><div>```</div><div><font face="monospace">arthurfayzrakhmanov@MacBook-Pro-Arthur ~/L/h/pg001> brew search postgres<br>==> Formulae<br>check_postgres postgresql@11 postgresql@9.5 qt-postgresql<br>postgresql ✔ postgresql@12 postgresql@9.6 postgis<br>postgresql@10 postgresql@9.4 postgrest<br>==> Casks<br>navicat-for-postgresql postgrespreferencepane<br>postgres-unofficial sqlpro-for-postgres<br>arthurfayzrakhmanov@MacBook-Pro-Arthur ~/L/h/pg001> psql --version<br>psql (PostgreSQL) 13.4</font><br></div></div><div>```</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">ср, 22 сент. 2021 г. в 01:55, Branimir Maksimovic <<a href="mailto:branimir.maksimovic@gmail.com" target="_blank">branimir.maksimovic@gmail.com</a>>:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div style="word-wrap:break-word;line-break:after-white-space">which version of postgresql you are using?<div><div>bmaxa@Branimirs-Air ~ % brew search postgres</div><div>==> Formulae</div><div>check_postgres postgresql@10 postgresql@12 postgresql@9.5 postgrest postgis</div><div>postgresql postgresql@11 postgresql@9.4 postgresql@9.6 qt-postgresql</div><div>==> Casks</div><div>navicat-for-postgresql postgres-unofficial postgrespreferencepane sqlpro-for-postgres</div><div><br></div><div>?</div><div><br></div><div>Greetings, Branimir.</div><div><br></div><div><blockquote type="cite"><div>On 21.09.2021., at 22:47, Geraldus <<a href="mailto:heraldhoi@gmail.com" target="_blank">heraldhoi@gmail.com</a>> wrote:</div><br><div><div dir="ltr">Hi, dear Cafe!<div><br></div><div>I'm having trouble compiling an application which uses PostgreSQL on a macbook with an M1 chip. </div><div><br></div><div>Postgre itself seems to work fine. It is installed via `homebrew` (if I'm not mistaken this is the only way on Mac to get pg_config, which is required for `persistent-postgresql`). The error message is following: </div><div><br></div><div>```</div><div><font face="monospace">persistent-postgresql> <command line>: dlopen(/Users/arthurfayzrakhmanov/.stack/snapshots/x86_64-osx/36432054bd8d13c1da6134758733286b536c65d34222dcf10ecb29bd437c8117/8.10.7/lib/x86_64-osx-ghc-8.10.7/libHSpostgresql-libpq-0.9.4.3-GrxZELytXmSAOH6lAioiw9-ghc8.10.7.dylib, 5): <b>Symbol not found: _PQclear</b><br>persistent-postgresql> Referenced from: /Users/arthurfayzrakhmanov/.stack/snapshots/x86_64-osx/36432054bd8d13c1da6134758733286b536c65d34222dcf10ecb29bd437c8117/8.10.7/lib/x86_64-osx-ghc-8.10.7/libHSpostgresql-libpq-0.9.4.3-GrxZELytXmSAOH6lAioiw9-ghc8.10.7.dylib<br>persistent-postgresql> <b>Expected in: flat namespace</b><br>persistent-postgresql> in /Users/arthurfayzrakhmanov/.stack/snapshots/x86_64-osx/36432054bd8d13c1da6134758733286b536c65d34222dcf10ecb29bd437c8117/8.10.7/lib/x86_64-osx-ghc-8.10.7/libHSpostgresql-libpq-0.9.4.3-GrxZELytXmSAOH6lAioiw9-ghc8.10.7.dylib</font><br></div><div>```</div><div><br></div><div>The minimal setup to reproduce is following: </div><div><br></div><div>```</div><div><font face="monospace">dependencies:<br>- base >= 4.7 && < 5<br>- persistent >= 2.13.1.2 && < 3<br>- persistent-postgresql >= 2.13.1.0 && < 3</font><br></div><div>```</div><div><br></div><div>Digging around gave me just a few clues. It seems that `libpq` I have is compiled some other way it expected, and missing some symbols required `persistent-postgresql` to work. I believe this is not a bug, rather that a local configuration issue. </div><div><br></div><div>Does anyone know which is right setup to build persistent-postgresql on Macs with M1 chip? Thanks in advance.</div><div><br></div><div>Sincerely. </div><div>Arthur.</div><div><br></div><div>P.S. Please apologize if this is not a right place to ask such questions. Asked already in Yesod Google Groups and Stack Overflow. But didn't received any feedback.</div></div>
_______________________________________________<br>Haskell-Cafe mailing list<br>To (un)subscribe, modify options or view archives go to:<br><a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe" target="_blank">http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe</a><br>Only members subscribed via the mailman list are allowed to post.</div></blockquote></div><br></div></div></blockquote></div>
</div></blockquote></div><br></div></div></blockquote></div>