Skip to content

A Long Term Goal For Preprocessing #308

Open
@everythingfunctional

Description

@everythingfunctional

A killer functionality that would be nice to have as part of fpm, would be the ability to use Fortran code to generate Fortran code as part of preprocessing a source file.

Rust has intelligent macros, which provide a similar capability. I don't remember if it's part of stack or the Haskell language itself, but they have a directive which can call a tool, which might be built as part of the current package, to generate some source code. For example, I created a testing framework in Haskell (here) similar to my vegetables framework, where the "main" test program only contains the following line:

{-# OPTIONS_GHC -F -pgmF hedge-trimmer #-}

It would be awesome if my test driver program could contain just a similar line.

Metadata

Metadata

Assignees

No one assigned

    Labels

    specificationIssue regarding fpm manifest and model

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions