mirror of
https://github.com/Smaug123/WoofWare.Myriad
synced 2025-10-10 06:28:40 +00:00
Initial commit
This commit is contained in:
20
UsePlugin/Generated.fs
Normal file
20
UsePlugin/Generated.fs
Normal file
@@ -0,0 +1,20 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// This code was generated by myriad.
|
||||
// Changes to this file will be lost when the code is regenerated.
|
||||
//------------------------------------------------------------------------------
|
||||
namespace UsePlugin
|
||||
|
||||
/// Module containing an option-truncated version of the RecordType type
|
||||
[<RequireQualifiedAccess>]
|
||||
[<CompilationRepresentation(CompilationRepresentationFlags.ModuleSuffix)>]
|
||||
module RecordType =
|
||||
/// My whatnot
|
||||
type Short =
|
||||
{
|
||||
/// A thing!
|
||||
A : int
|
||||
/// Another thing!
|
||||
B : string
|
||||
/// Yet another thing!
|
||||
C : float list
|
||||
}
|
19
UsePlugin/Program.fs
Normal file
19
UsePlugin/Program.fs
Normal file
@@ -0,0 +1,19 @@
|
||||
namespace UsePlugin
|
||||
|
||||
module Program =
|
||||
let f : RecordType =
|
||||
{
|
||||
A = Some 3
|
||||
B = "hello"
|
||||
C = [ 0.3 ]
|
||||
}
|
||||
|
||||
let g : RecordType.Short =
|
||||
{
|
||||
A = 3
|
||||
B = "hello"
|
||||
C = [ 0.3 ]
|
||||
}
|
||||
|
||||
[<EntryPoint>]
|
||||
let main _ = 0
|
13
UsePlugin/RecordFile.fs
Normal file
13
UsePlugin/RecordFile.fs
Normal file
@@ -0,0 +1,13 @@
|
||||
namespace UsePlugin
|
||||
|
||||
/// My whatnot
|
||||
[<MyriadPlugin.RemoveOptions>]
|
||||
type RecordType =
|
||||
{
|
||||
/// A thing!
|
||||
A : int option
|
||||
/// Another thing!
|
||||
B : string
|
||||
/// Yet another thing!
|
||||
C : float list
|
||||
}
|
29
UsePlugin/UsePlugin.fsproj
Normal file
29
UsePlugin/UsePlugin.fsproj
Normal file
@@ -0,0 +1,29 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
<TargetFramework>net7.0</TargetFramework>
|
||||
<IsPackable>false</IsPackable>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<MyriadSdkGenerator Include="$(MSBuildThisFileDirectory)..\MyriadPlugin\bin\$(Configuration)\$(TargetFramework)\MyriadPlugin.dll" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Compile Include="RecordFile.fs" />
|
||||
<Compile Include="Generated.fs"> <!--1-->
|
||||
<MyriadFile>RecordFile.fs</MyriadFile> <!--2-->
|
||||
</Compile>
|
||||
<Compile Include="Program.fs" />
|
||||
<None Include="..\runmyriad.sh">
|
||||
<Link>runmyriad.sh</Link>
|
||||
</None>
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\MyriadPlugin\MyriadPlugin.fsproj" />
|
||||
<PackageReference Include="Myriad.Sdk" Version="0.8.2" />
|
||||
<PackageReference Include="Myriad.Core" Version="0.8.2" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
Reference in New Issue
Block a user