language-c-quote-0.12.2: C/CUDA/OpenCL/Objective-C quasiquoting library.

Copyright(c) 2006-2011 Harvard University
(c) 2011-2013 Geoffrey Mainland
: (c) 2013-2015 Drexel University
LicenseBSD-style
Maintainermainland@drexel.edu
Safe HaskellNone
LanguageHaskell98

Language.C.Quote.CUDA

Description

The quasiquoters exposed by this module support the CUDA extensions, including CUDA-specific declaration specifiers and <<<…>>> kernel invocation syntax.

It includees partial support for C++11 lambda expressions syntax.

Support for lambda-expressions has the following limitations:

  • the capture list must either be empty or have only the default capture mode specifier;
  • the return type cannot be explicitly specified;
  • the package supports C language, not C++, therefore lambda parameter list and body must be in valid C syntax.

Examples of lambdas supported by the cexp quasiquoter:

[] (int i) mutable {}
[&] { return 7; }

Synopsis

Documentation

class ToIdent a where Source #

An instance of ToIndent can be converted to a Id.

Minimal complete definition

toIdent

Methods

toIdent :: a -> SrcLoc -> Id Source #

Instances

class ToExp a where Source #

An instance of ToExp can be converted to a Exp.

Minimal complete definition

toExp

Methods

toExp :: a -> SrcLoc -> Exp Source #