Skip to content

LenseGenerator 0.4.0 fails to strip autogenerated "Module" suffix. #1

@embix

Description

@embix

The following model declaration:

module X = 

    type Value = Value of int

type X = {
    x : X.Value
}

generates the following lense implementation:

namespace MyProject.Domain.Lenses


// autogenerated with FSCSLensGenerator
open Aether

// autogenerated Aether.Lens-es for MyProject.Domain.Model.X
module X = 
    let x_ : Lens<MyProject.Domain.Model.X,MyProject.Domain.Model.XModule.Value> =
        let getterDef = ( fun (x:MyProject.Domain.Model.X) -> x.x )
        let setterDef = ( fun (xx:MyProject.Domain.Model.XModule.Value) (x:MyProject.Domain.Model.X) -> {x with x = xx } )
        (getterDef,setterDef)

Which is fails to compile with The type "XModule" is not defined.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions