On Thu, Dec 8, 2016 at 12:01 PM, Hartmut Goebel
<[email protected]> wrote:
> Hi,
>
> I'm confused about string-append working inconsistently:
>
> In package definitions, I'm used to write '(string-append PKG "…")'. But
> when I use this for defining a service, I get an error:
>
> In procedure string-append: Wrong type (expecting string): #<package
> [email protected] gnu/packages/web.scm:124 42449c0>
>
> What is going on here?
>
> Here is the service-definition I use:
>
>              (nginx-service #:vhost-list
>                (list (nginx-vhost-configuration
>                       (root (string-append nginx "/share/nginx/html"))
>                       (https-port #f)
>                       (ssl-certificate #f)
>                       (ssl-certificate-key #f))))

This isn't a bug.  string-append is a procedure provided by Guile and
it only works on strings.

- Dave

Reply via email to