Comments (5)
Can you please show your serverless.yml
and the output of stack ls dependencies
?
from serverless-haskell.
> stack ls dependencies
awsLambda 0.1.0.0
base 4.11.1.0
ghc-prim 0.5.2.0
integer-gmp 1.0.2.0
rts 1.0
# This file was automatically generated by 'stack init'
#
# Some commonly used options have been documented as comments in this file.
# For advanced use and comprehensive documentation of the format, please see:
# https://docs.haskellstack.org/en/stable/yaml_configuration/
# Resolver to choose a 'specific' stackage snapshot or a compiler version.
# A snapshot resolver dictates the compiler version and the set of packages
# to be used for project dependencies. For example:
#
# resolver: lts-3.5
# resolver: nightly-2015-09-21
# resolver: ghc-7.10.2
# resolver: ghcjs-0.1.0_ghc-7.10.2
#
# The location of a snapshot can be provided as a file or url. Stack assumes
# a snapshot provided as a file might change, whereas a url resource does not.
#
# resolver: ./custom-snapshot.yaml
# resolver: https://example.com/snapshots/2018-01-01.yaml
resolver: lts-12.9
# User packages to be built.
# Various formats can be used as shown in the example below.
#
# packages:
# - some-directory
# - https://example.com/foo/bar/baz-0.0.2.tar.gz
# - location:
# git: https://github.com/commercialhaskell/stack.git
# commit: e7b331f14bcffb8367cd58fbfc8b40ec7642100a
# - location: https://github.com/commercialhaskell/stack/commit/e7b331f14bcffb8367cd58fbfc8b40ec7642100a
# subdirs:
# - auto-update
# - wai
packages:
- .
# Dependency packages to be pulled from upstream that are not in the resolver
# using the same syntax as the packages field.
# (e.g., acme-missiles-0.3)
extra-deps:
- serverless-haskell-0.7.5
# Override default flag values for local packages and extra-deps
# flags: {}
# Extra package databases containing global packages
# extra-package-dbs: []
# Control whether we use the GHC we find on the path
# system-ghc: true
#
# Require a specific version of stack, using version ranges
# require-stack-version: -any # Default
# require-stack-version: ">=1.7"
#
# Override the architecture used by stack, especially useful on Windows
# arch: i386
# arch: x86_64
#
# Extra directories used by stack for building
# extra-include-dirs: [/path/to/dir]
# extra-lib-dirs: [/path/to/dir]
#
# Allow a newer minor version of GHC than the snapshot specifies
# compiler-check: newer-minor
from serverless-haskell.
I'm assuming your package is called awsLambda
. Please check that you've included serverless-haskell
as a dependency of your executable? If in doubt, post package.yaml
(or *.cabal
).
I can see that this is not mentioned in the README. Can you please verify that it fixes the problem? I'll expand the documentation then.
from serverless-haskell.
I'm seeing that there is a package.yaml and a *.cabal file.
Should both of those be there? If so, should I add them to both?
from serverless-haskell.
If you have package.yaml
, ignore the Cabal file as it will be automatically generated for you. See https://github.com/sol/hpack for more details.
from serverless-haskell.
Related Issues (20)
- Google Functions support HOT 2
- Node 10.x missing library error HOT 1
- Support lts 14 HOT 5
- fatal error exe is not defined HOT 16
- LTS 14: GLIBC_2.27 not found HOT 6
- Deploy fails when using master / rootless Docker HOT 4
- Error: child process output bad JSON HOT 3
- Google run HOT 2
- Offline even with `--useDocker` tries to use lambci/lambda:haskell which doesn't exist HOT 10
- sls invoke local hangs forever + errors HOT 4
- Issues with missing shared object dependencies when running in aws environment HOT 5
- Define validation schema HOT 1
- Avoid Docker / NodeJS runtime wrapper? HOT 4
- Permission errors HOT 1
- Support container images! HOT 5
- Cannot read property 'schema' of undefined HOT 1
- Versions 0.12.4+ throw TypeError: Cannot read property 'schema' of undefined HOT 5
- Build failures after switching to `haskell:stretch` HOT 3
- Request to support amazonka 2.0
- Stackage nighly compilation failure HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from serverless-haskell.